Skip to content

Commit fcd6611

Browse files
committed
#453 #459
1 parent 3e940ab commit fcd6611

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/client/unittests/unittest/runner.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export function runTest(testManager: BaseTestManager, rootDirectory: string, tes
4848
});
4949
server.on('result', (data: ITestData) => {
5050
const test = tests.testFunctions.find(t => t.testFunction.nameToRun === data.test);
51+
const statusDetails = outcomeMapping.get(data.outcome);
5152
if (test) {
52-
const statusDetails = outcomeMapping.get(data.outcome);
5353
test.testFunction.status = statusDetails.status;
5454
test.testFunction.message = data.message;
5555
test.testFunction.traceback = data.traceback;
@@ -59,6 +59,11 @@ export function runTest(testManager: BaseTestManager, rootDirectory: string, tes
5959
testManager.stop();
6060
}
6161
}
62+
else {
63+
if (statusDetails){
64+
tests.summary[statusDetails.summaryProperty] += 1;
65+
}
66+
}
6267
});
6368
server.on('socket.disconnected', (data) => {
6469
});
@@ -73,7 +78,7 @@ export function runTest(testManager: BaseTestManager, rootDirectory: string, tes
7378
function runTest(testFile: string = '', testId: string = '') {
7479
let testArgs = buildTestArgs(args);
7580
failFast = testArgs.indexOf('--uf') >= 0;
76-
testArgs = testArgs.filter(arg=>arg !== '--uf');
81+
testArgs = testArgs.filter(arg => arg !== '--uf');
7782

7883
testArgs.push(`--result-port=${port}`);
7984
testArgs.push(`--us=${startTestDiscoveryDirectory}`);

0 commit comments

Comments
 (0)