-
Notifications
You must be signed in to change notification settings - Fork 15
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
It should be possible to run a single or selection of tests instead of every test in a file #29
Comments
@mscharhag, can you please respond? |
@peterklijn you can create a static method that simply ignore the methods. |
@peterklijn don't know if this is the case, but there's another project from the community under heavy development and which has all those features you need. |
Thanks for the tip @brunodles, I actually already implemented it a while ago :). Just added a PR a few seconds ago: #35 Thanks for sharing @marioluan, however I must admit that I'm not the biggest BDD fan. Hopefully my PR will be merged 🤞 |
Good suggestion. Thanks for the pull request @peterklijn. I will have a look in the next days. |
@mscharhag did you have a chance to look at the PR already? Is there a way that I can help to speed things up a bit? |
@peterklijn I am sorry that this took (again) longer than expected (which has nothing to do with your pull request). Does it help you, if I create a new release with this pull request? |
That would be great! Thanks |
Added 0.2.0 release containing this and your other pull request. It also available via maven central repository. |
When writing unit tests in plain old JUnit, at least in an IDEA it is possible to run a single test. Currently this is not the case for oleaster afaik. Now I understand that this is partly an IDEA thing and this might be seen as out-of-scope for this project. However I would suggest the following:
In Jasmine they have the 'focused specs' concept, where you can prefix an
it
with the letterf
, to run only that block, or prefix adescribe
with the letterf
to run only that describe block.Focussed it
Focussed describe
An interesting alternative, which I prefer since it's more readable, is Mocha (which is a Jasmine alternative), which used the 'exclusive' and 'inclusive' concepts:
exclusive it
exclusive describe
Inclusion
The text was updated successfully, but these errors were encountered: