title: .coveragerc file location when running py.test
body: <p>I am trying to get a pytest run to work with a coveragerc file. Settings in my .coveragerc file are not used, so I guess the file is not used at all.</p>
  
  <p>See my project structure and pytest calls below! What am I doing wrong?</p>
  
  <p>Project:</p>
  
  <pre><code>basepath/lib/
  basepath/.coveragerc
  basepath/test/test_lib
  basepath/test/run.py
  </code></pre>
  
  <p>I call test/run.py from virtualenv</p>
  
  <pre><code>basepath$ python test/run.py
  </code></pre>
  
  <p>run.py</p>
  
  <pre><code>import pytest
  pytest.main('test/test_lib -v --cov-report xml --cov lib --cov-config .coveragerc')
  </code></pre>
  
  <p>I tried to move .coveragerc in different directories i.e. lib/, test/, test/test_lib/ but none of them worked.</p>
  
  <p>I expected to get a coverage file named "xxxcoverage" as set in .coveragerc but I always got the default one .coverage</p>
  
  <p>.coveragerc</p>
  
  <pre><code>[run]
  data_file = xxxcoverage
  </code></pre>