-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show how many tests were skipped by --fail-fast #1221
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome back!
lib/reporters/mini.js
Outdated
@@ -233,7 +233,8 @@ class MiniReporter { | |||
} | |||
|
|||
if (runStatus.failFastEnabled === true && runStatus.remainingCount > 0 && runStatus.failCount > 0) { | |||
status += '\n\n ' + colors.information('`--fail-fast` is on. Any number of tests may have been skipped'); | |||
const remaining = runStatus.remainingCount + ' skipped ' + plur('test', runStatus.remainingCount) + '.'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't necessarily know how many tests would have executed when running in --concurrency
mode. So to be accurate this should be At least 1 test was skipped.
.
test/reporters/mini.js
Outdated
@@ -643,7 +643,7 @@ test('results when fail-fast is enabled', t => { | |||
compareLineOutput(t, output, [ | |||
'', | |||
'', | |||
' ' + colors.information('`--fail-fast` is on. Any number of tests may have been skipped') | |||
' ' + colors.information('`--fail-fast` is on. 1 skipped test.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should have a test for multiple skipped tests.
I've updated the text to |
I think the current text is fine…? Second-guessing my language skills now. You can use |
All right, sorry about that. Text fixed! |
I'm back @avajs/core!
Closes #1172.
Let me know if you want to change the text.