Skip to content

Commit

Permalink
Fix failure extraction (#31)
Browse files Browse the repository at this point in the history
* ci: fix failure extraction bug

* ci: fix format errors
  • Loading branch information
jhowlett-scottlogic authored Nov 1, 2022
1 parent af762cf commit 46c5dc0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions testResultParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ function parse(results) {
/^(\d+)\sscenarios?\s\(((\d+)\sfailed)?(,\s)?((\d+)\sundefined)?(,\s)?((\d+)\spassed)?\)/
);
if (resultMatch) {
result.scenarios = parseTestResultNumber(resultMatch[1]);
result.passed = parseTestResultNumber(resultMatch[9]);
result.skipped = 0;
result.undef = parseTestResultNumber(resultMatch[6]);
result.failed = parseTestResultNumber(resultMatch[3]);
result.time = time;
result.scenarios = parseTestResultNumber(resultMatch[1]);
result.passed = parseTestResultNumber(resultMatch[9]);
result.skipped = 0;
result.undef = parseTestResultNumber(resultMatch[6]);
result.failed = parseTestResultNumber(resultMatch[3]);
result.time = time;
} else {
throw new Error(`Could not parse the results of the TypeScript testing.`);
}
Expand Down

0 comments on commit 46c5dc0

Please sign in to comment.