title: Change pytest working directory to test case directory
body: <p>I have the following pytest directory structure:</p>
  <pre><code>system_tests/
    ├── conftest
    ├── pytest.ini
    │
    ├── suite_1/
    │    └── test_A.py
    │   
    └── suite_2/
         └── sub_suite_2a/
              └── test_B.py
  </code></pre>
  <p>When each test method runs, a number of third-party libraries/processes generate artifacts in the current working directory.</p>
  <ul>
  <li>When pytest is executed from the <code>sub_suite</code> folder (using CLI or IDE &quot;play&quot; button), the files are generated in the <code>sub_suite</code> folder, where I want them to be.</li>
  <li>However, when pytest is run from the <code>system_tests</code> folder to run all tests, all artifacts are created in the <code>system_tests</code> folder, which is not what I want.</li>
  </ul>
  <p>Is there an easy way to force pytest to always use the test class folder as the working directory so I get the same results regardless of <em>how</em> or <em>where</em> I run a test from?</p>