Skip to content

Commit a009edb

Browse files
Default to --no-cov when debugging pytest (#21048)
Resolve #19985.
1 parent d23afe8 commit a009edb

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)