Skip to content

Commit 867a44e

Browse files
aidoskanapyanoveleanorjboyd
authored andcommitted
Default to --no-cov when debugging pytest (microsoft#21048)
Resolve microsoft#19985.
1 parent bf3ad2c commit 867a44e

File tree

1 file changed

+4
-0
lines changed
  • src/client/testing/testController/pytest

1 file changed

+4
-0
lines changed

src/client/testing/testController/pytest/runner.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ export class PytestRunner implements ITestsRunner {
9595
testArgs.push('--capture', 'no');
9696
}
9797

98+
if (options.debug && !testArgs.some((a) => a.startsWith('--no-cov'))) {
99+
testArgs.push('--no-cov');
100+
}
101+
98102
// Positional arguments control the tests to be run.
99103
const rawData = idToRawData.get(testNode.id);
100104
if (!rawData) {

0 commit comments

Comments
 (0)