title: Pycharm/IntelliJ shows 0% coverage for pytest even though coverage was generated
body: <p>I have a Python project and a <code>tests</code> task, set up to run <code>pytest</code> from the project's working directory. </p>
  
  <p><a href="https://i.stack.imgur.com/2qJxM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2qJxM.png" alt="enter image description here"></a></p>
  
  <p>Doing <code>Run 'tests' with coverage</code> from the <code>Run</code> menu successfully runs the tests, and the console results shows that coverage was measured - e.g. 53% cover for <code>mws.py</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/fSnXy.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/fSnXy.jpg" alt="enter image description here"></a></p>
  
  <p>The automatically applied coverage (as on the right) is 0% for all files, I'm not sure why. I'm using IntelliJ 2017.2.2 EAP.</p>
  
  <p>NB: there is a related five year old question <a href="https://stackoverflow.com/q/9841148/2387626">here</a>, but the top rated solution there doesn't apply. There is no error message in the results console in this case.</p>