Skip to content

Commit

Permalink
Check to make sure testRun exists (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
quietbits authored Jun 6, 2023
1 parent 947d3ed commit 65a9997
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions ui/src/views/TestRunner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,17 @@ export const TestRunner = () => {
const sepArray = testRunArrayCopy.find(({ sep }) => sep === test.sep);
if (sepArray) {
const testRun = sepArray.tests[testRunOrderMap[getTestRunId(test)]];
if (result) {
if (result.failureMode) {
sepArray.progress.failed++;
} else {
sepArray.progress.passed++;
if (testRun) {
if (result) {
if (result.failureMode) {
sepArray.progress.failed++;
} else {
sepArray.progress.passed++;
}
numberOfTestsRun.current++;
}
numberOfTestsRun.current++;
testRun.result = result;
}
testRun.result = result;
}
setTestRunArray(testRunArrayCopy);

Expand Down

0 comments on commit 65a9997

Please sign in to comment.