Skip to content

Commit

Permalink
test(SCOUT): [BLA-1118] fix failing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwapriya committed Jan 24, 2025
1 parent 5e8d1bc commit 2fdc965
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ exec(stencilTestCommand, (error, stdout, stderr) => {
console.log(stdout);
console.error(stderr);

console.log('STDOUT:', stdout);
console.log('STDERR:', stderr);

const hasFailures = /FAILED|FAILURE|FAILURES|Error/i.test(stdout) || /FAILED|FAILURE|FAILURES|Error/i.test(stderr);
const testFailureRegex = /Tests:.*\bfailed\b|Test Suites:.*\bfailed\b/i;

const hasFailures = testFailureRegex.test(stdout) || testFailureRegex.test(stderr);

if (hasFailures) {
console.error('Test failures detected!');
Expand Down

0 comments on commit 2fdc965

Please sign in to comment.