-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Change default reporter to spec #1228
Comments
I agree. |
+1 |
👍 lets do this @travisjeffery |
I'd also agree. I never use the dot reporter. In what situation is "less output" at the expense of "little information" better? |
Oh noes! Why did you change my test output just like this? There was an option to override, well documented - and now you are forcing everybody who was happy with the dots to go through all their projects and add this option? @boneskull Reducing noise is very very usefull to me during development. I only care about failing tests. If all is green, then this is the only information I need. But that's just me, apparently. |
maybe we should have a |
That makes sense. Other than that I would have left changing the default value to the next major release. Do you care to revert until 2.0? |
well this doesn't actually break anything so there really isn't a point in switching back and forth. |
@jonathanong agreed, I don't see this sort of functionality necessitating a wait for a major release. |
I'd appreciate any future changes of this nature being accompanied by a major version bump. Having to go change every project's config in response to a minor bump is an unpleasant surprise. Thanks for your work on Mocha. |
This was not a breaking API change. SemVer does not mention "output" (maybe on purpose). If you consider Mocha to be a "function", the input is the code under test and expectations, and the output is a list of passing/failing tests. Even in that scenario, nothing broke, because the same input still produces the same output. This sort of disagreement reinforces the need to split the reporters out into separate modules, perhaps even providing no default reporter, so the user must be explicit. I apologize if this was an inconvenience for some, but the default was an inconvenience for others. You can't make everybody happy all the time. 😄 |
Don't get me wrong — I accept that this is a done deal, and am not asking for it to be changed again just to revert to the old default. I've already added |
There is breakin change. Some dependents may use output. It is like change of returning type |
@golyshevd Sorry, but if you're consuming the output of human-readable reporters like dots or spec, you're making a mistake. |
@graue I understand, but "just working" to you may not be "just working" to someone else. To me, before and after the change, it still "just works"--I don't rely on defaults. Even as a casual user of libraries, this is how I tend to operate. Considering npm's behavior vs. reality (not everyone adheres to SemVer), that's kept me out of some trouble. I apologize, but I'm going to lock this issue, as I don't see the change being reverted. I expect this debate will be taken into consideration when changing defaults in the future. I'd love it if more casual users of Mocha (or any project!) would keep abreast of the issues and PRs, so their voices can be heard before controversial changes are made. thanks, |
Personally I only use spec. I think the default dot-based reporter is essentially useless. Knowing what you're testing is as important as the tests themselves.
The text was updated successfully, but these errors were encountered: