You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -120,9 +120,10 @@ export class PytestTestDiscoveryAdapter implements ITestDiscoveryAdapter {
120
120
}
121
121
});
122
122
result?.proc?.on('close',(code,signal)=>{
123
-
if(code!==0){
123
+
// pytest exits with code of 5 when 0 tests are found- this is not a failure for discovery.
124
+
if(code!==0&&code!==5){
124
125
traceError(
125
-
`Subprocess exited unsuccessfully with exit code ${code} and signal ${signal}. Creating and sending error discovery payload`,
126
+
`Subprocess exited unsuccessfully with exit code ${code} and signal ${signal} on workspace ${uri.fsPath}. Creating and sending error discovery payload`,
126
127
);
127
128
// if the child process exited with a non-zero exit code, then we need to send the error payload.
0 commit comments