Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions news/2 Fixes/17546.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix for `pytest` run all tests when using `pytest.ini` and `cwd`.
(thanks [Brian Rutledge](https://github.com/bhrutledge))
2 changes: 1 addition & 1 deletion src/client/testing/testController/pytest/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class PytestRunner implements ITestsRunner {
if (!rawData) {
throw new Error(`Trying to run unknown node: ${testNode.id}`);
}
if (testNode.id !== options.workspaceFolder.fsPath) {
if (testNode.id !== options.cwd) {
testArgs.push(rawData.rawId);
}

Expand Down