Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e80a2a commit cdc2fafCopy full SHA for cdc2faf
src/services/testRunner/index.ts
@@ -92,8 +92,17 @@ const createTestRunner = (data: TT.Tutorial, callbacks: Callbacks) => {
92
addOutput({ channel: logChannelName, text: tap.logs.join('\n'), show: false })
93
94
if (stderr) {
95
- // FAIL also trigger stderr
96
- if (stdout && stdout.length && !tap.ok) {
+ if (!tap.failed.length) {
+ // test runner failed
97
+ const failSummary = {
98
+ title: 'Test Runner Failed',
99
+ description: stderr,
100
+ summary: {},
101
+ }
102
+ callbacks.onFail(position, failSummary)
103
+ return
104
+ } else if (stdout && stdout.length && !tap.ok) {
105
+ // FAIL also trigger stderr
106
const firstFail = tap.failed[0]
107
const failSummary = {
108
title: firstFail.message || 'Test Failed',
0 commit comments