title: Python Pytest ignore tests from a directory mentioned in the setup.cfg file
body: <p>I am trying to use pytest to run some tests. My package contains a setup.cfg file where I've stated all the pytest options</p>
  
  <p><code>[tool:pytest]
   addopts =
   --verbose
   unit
  </code>
  as it is visible I've added the <code>unit</code> directory to find the test files. This works fine and all the tests from the directory get executed during the normal build process.</p>
  
  <p><strong>Actual Problem</strong> - </p>
  
  <p>Now I have another directory <code>integ</code> where I have my integration tests which I want to run sometimes but do not want them as a part of my build process. I have created another command line option to run my integ tests but I am not able to figure out how to provide the file set correctly for the same</p>
  
  <p>I've tried <code>pytest --ignore=unit integ</code> through command line but it runs all my tests from unit as well as integ. I want to run the tests present in integ only and ignore the tests from unit. What am I missing here?</p>
  
  <p>[update]
  When I run <code>pytest --ignore=unit/test_file.py integ</code> it ignores the tests in test_file but when I use <code>pytest --ignore=unit/*.py integ</code> it says <code>no matches found: --ignore=test/*.py</code></p>
  
  <p>Thanks</p>