-
Notifications
You must be signed in to change notification settings - Fork 37
Command line switch to fail on focus rocket #327
Comments
That makes a lot of sense, thanks for the suggestion. |
I'd love to fix this, as I'm getting burned by this myself occasionally, but I'll need some help... If I understand correctly, I should create a new flag, e.g. But what's the appropriate thing to do when |
@dymonaz, i currently don't know how to realize it, but the behavior should be similar to the behavior in case you have a test-case without a name set. In test-case.js an Error is thrown and that leads to the output
without a stack trace. |
What if instead of failing, the switch ignored the rockets (i.e. on |
Then again... the above might be a bad idea, since the goal is not only to "make CI run ALL tests" - checking in focus rocket affects other people in the team and should draw attention... |
Note that if you |
The reason the test run just hangs is because if there's a rejected promise in I was able to make the suite fail by rejecting the promise, still firing |
The code in the pull request doesn't look pretty, but it does the job. The only real problem is that the error is never displayed - I'd normally just A better approach would be a But if this approach is kind of OK - it's fairly simple to add |
Can we re-open this? busterjs/buster-test#25 was just a first step - still working on the final solution (I think there'll be one PR on buster-test and one on buster-test-cli). |
Yes we can ;) |
OK, the |
That sounds good. Make sure that the result object emitted with suite:end also indicates an unsuccessful run. Small nitpick: I prefer boolean options and command line arguments, so I'd like to rename the option here. One suggestion is --fail-focus-rocket, but I'm open to other suggestions. Thoughts? |
We already have a |
@cjohansen |
👍 |
@dymonaz I just meant that the |
Yeah, I already did the |
@dymonaz 👍 for But which short option we want to use? |
I was thinking about none :) |
None is fine :) |
That's maximum shortness. :) 👍 |
OK, I think busterjs/buster-test-cli#14 is now done - renamed to As for the
As I'm not really a fan of long threads that never get released, my suggestion would be this:
Do you think we'd be close to a release-able state after that? Happy to hear about alternatives on how to carve this up into smaller pieces of work... |
The Sounds like a solid plan! |
Took the liberty to also update the I think this is done, once busterjs/buster-test#26 is merged? Docs probably need an update for this http://docs.busterjs.org/en/latest/overview/#focus-rocket - are there any other places to update? |
No, I think that's about it. Well done! |
This should be closed, shouldn't it? |
Focus rockets are great, but leaving them in the code before committing is a hazard. For CI servers, I could imagine a command line switch that, when activated will cause buster-test to fail with an error if any rockets are found.
The text was updated successfully, but these errors were encountered: