-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add vm.skip(true); to generated tests #57
Comments
Yeah, that sounds like a great quality-of-life improvement. I need to think about what the design of this feature will be, but it's probably gonna be either a flag or some sort of "template" that bulloak reads from. |
I thought the same and had a bit of time this Sunday, I have a (super rough) implementation, which was meant as personal use but happy to pretty-fy it/make the flag functional/etc @alexfertel |
That looks amazing @drgorillamd ! It's pretty close to what I would have done myself. Are you down to open a PR so I can properly review it? I have a few comments, but it shouldn't be much more work. |
Sure! Maybe 2 things I'd like to tidy a bit before:
|
I haven't formed an opinion yet because I'm unsure just how much we want to add support for -- I'd rather keep bulloak as lean as possible. That being said, this seems like quite a useful feature, so I'd say we go with 1, since that feels like it gives us more optionality (i.e. flexibility in the future) |
Opened #62 which would need 1 actually, to avoid being hack-bloated at some point |
I had the following experience with bulloak recently:
At some point during a protocol development, we started outlining trees for methods.
Once finished, we scaffolded test files with over 100 test cases.
When we ran tests, it reported all tests succeed even though majority of them were empty tests generated with bulloak.
We manually added
vm.skip(true);
to over a 100 test cases to have an accurate reporting on how many tests actually pass and how many are waiting to be implemented (skipped).Then, as we implemented each test, we removed the
vm.skip(true);
statement.I believe it would be cool if bulloak could add
vm.skip(true);
to all scaffolded tests or at least provide a flag to do that.The text was updated successfully, but these errors were encountered: