Skip to content

Commit

Permalink
Default to --no-cov when debugging pytest (microsoft#21048)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidoskanapyanov authored and eleanorjboyd committed May 12, 2023
1 parent b3d43e5 commit c517b84
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 c517b84

Please sign in to comment.