-
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
Reporters shouldn't assume the only error when --match
is used is that it didn't match any tests
#2191
Comments
Yea that's pretty bizarre. It should work the same as without |
To reproduce this, I had to run with There is an early return in the block at https://github.com/avajs/ava/blob/master/lib/reporters/mini.js#L382, which prevents further error details from being output when running without
Maybe that could be moved further down the method, but I don't know how that will affect output for other cases. |
In the reproduction, it's in AVA's configuration, not on the CLI.
Yea we have a bunch of reporter issues. I think they're more fundamental than can be addressed in individual tickets. Will write up a larger issue instead. |
@vmlf01 thanks for finding the root cause though! |
@vmlf01 Ah, sorry, the latest version already contains the workaround. I’ve updated the installation instructions. Now they simply remove the workaround. |
--match
hides important output--match
is used is that it didn't match any tests
Both due to the age of this issue, and the state of our reporters, I've decided to roll this into #2501. |
Steps to reproduce (AVA: 2.2.0, macOS Mojave, Node.js 12.6):
package.json
and remove--verbose
:"test": "ava --verbose --match \"!*#bonus\"",
"test": "ava --match \"!*#bonus\"",
npm install
npm t installation_test.mjs
[works properly]Interaction 1: bug (error output is hidden)
Interaction 2: desired output
The text was updated successfully, but these errors were encountered: