Skip to content

Commit bdabd10

Browse files
committed
add logging
1 parent 140fa1e commit bdabd10

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
7272
});
7373

7474
try {
75+
console.log('EJFB run tests new');
7576
await this.runTestsNew(
7677
uri,
7778
testIds,
@@ -203,6 +204,7 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
203204
}
204205
});
205206

207+
console.log('EJFB before execObservable');
206208
const result = execService?.execObservable(runArgs, spawnOptions);
207209
resultProc = result?.proc;
208210

@@ -213,11 +215,13 @@ export class PytestTestExecutionAdapter implements ITestExecutionAdapter {
213215
const out = utils.fixLogLinesNoTrailing(data.toString());
214216
runInstance?.appendOutput(out);
215217
this.outputChannel?.append(out);
218+
console.log('EJFB stdout', out);
216219
});
217220
result?.proc?.stderr?.on('data', (data) => {
218221
const out = utils.fixLogLinesNoTrailing(data.toString());
219222
runInstance?.appendOutput(out);
220223
this.outputChannel?.append(out);
224+
console.log('EJFB stderr', out);
221225
});
222226
result?.proc?.on('exit', (code, signal) => {
223227
console.log('EJFB on exit');

src/testTestingRootWkspc/errorWorkspace/test_seg_fault.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77

88
class TestSegmentationFault(unittest.TestCase):
99
def cause_segfault(self):
10+
print("Causing a segmentation fault")
1011
ctypes.string_at(0) # Dereference a NULL pointer
1112

1213
def test_segfault(self):
13-
assert True
1414
self.cause_segfault()
15+
assert True
1516

1617

1718
if __name__ == "__main__":

0 commit comments

Comments
 (0)