-
Notifications
You must be signed in to change notification settings - Fork 188
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
feat(*): add --name, --exclude-names-file and --log-success options #721
Conversation
Wouldn't the more typical pattern be to log failures and specifically rerun only previously failed tests? Kinda brainstorming here but it seems like that's a pattern I've used before in other test frameworks. |
@alerque The thing with a "failed" list is that it is harder to maintain because entries need to be removed from it once they pass, while the "succeeded" list can just be appended to. In fact, the I can add a |
I assumed the use-case for this was hacking on the code until the tests pass. If dealing with flaky tests is the use case would a |
A |
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.
Fixup lint error by using variable naming convention for unused vars.
92b54fe
to
570f611
Compare
f02606d
to
e4bc2f4
Compare
@alerque Is this PR now mergeable? We would like to start using the added functionality more and it would be good to have it be in the upstream repo for that reason. |
These two options are meant to be used together to allow re-running only the failing tests of a test suite. The --log-success option appends the name of each test to the given file, the --exclude-name-file option specifies a file that lists tests which should not be run.
I actually just fixed all the nit picks from my code review, but I can't push it because apparently you don't have the "allow maintainers" option checked in this PR. |
Can you either allow me access or pull the commits from this branch or split up the commits yourself as in that branch? |
Thank you for your review - I've addressed your comments. Where would I enable the "allow maintainers" option for next time? |
There should be a check box on the right sidebar in this PR I think...
|
I don't see the options, maybe because I'm not an org administrator of |
Unfortunately you can't address a comment about not touching irrelevant code by re-touching it again in another commit. That will just turn up 2 irrelevant commits in history on blame/bisect etc. I edited the history in way to completely remove the style change and move the unrelated bit to a different commit. Yes you might be right about not being able to allow me access to an org you don't administer. I see three options to fix this now:
No sweat off my back for any of the above, they just have tradoffs for you ;-) |
3fda2e7
to
b17880d
Compare
I've reset the PR to your branch and force-pushed. Thanks! |
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.
Looks good to me now, and sorry for the bother. Thanks for the contribution too, I'll personally get some use out of this feature set!
Thank you for merging, can you prepare a release as well or can I ping someone else to do it? |
See v2.2.0. |
These two options are meant to be used together to allow re-running only the failing tests of a test suite. The --log-success option appends the name of each test to the given file, the --filter-out-file option specifies a file that lists tests which should not be run.