Skip to content

Commit

Permalink
Default to --no-cov when debugging pytest (#21048)
Browse files Browse the repository at this point in the history
Resolve #19985.
  • Loading branch information
aidoskanapyanov authored Apr 19, 2023
1 parent d23afe8 commit a009edb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client/testing/testController/pytest/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ export class PytestRunner implements ITestsRunner {
testArgs.push('--capture', 'no');
}

if (options.debug && !testArgs.some((a) => a.startsWith('--no-cov'))) {
testArgs.push('--no-cov');
}

// Positional arguments control the tests to be run.
const rawData = idToRawData.get(testNode.id);
if (!rawData) {
Expand Down

0 comments on commit a009edb

Please sign in to comment.