-
Notifications
You must be signed in to change notification settings - Fork 694
Specific data test methods for various specs #5144
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
base: master
Are you sure you want to change the base?
Specific data test methods for various specs #5144
Conversation
|
is it still a draft? |
I'd say so, we are discussing it in the other pr :) |
|
lgtm, should we go away and add a simpler one too to iron out any incompatibilities ? |
|
Also can we not merge this until 6.0.5 has been released, as we should put this only in the 6.1.0 release. |
|
Sounds good re waiting 6.1.0, in that case, would you rather have all the code changes in this pr, so to avoid pr overload ? |
|
Your call - happy for one big one if that saves you sequencing headaches. Should we add some tests around beforeEach, beforeAny, beforeAll and how they now interact with withXXX ? I wonder if there's any code to be saved by parameterizing them like we did for test config? |
stringSpec added to this PR with
I have added some tests for this, it's particularly visible that
I don't think we can get any gainings by parameterizing this at this level, as in, I can parameterize it but the DSL will still need to be repeated for every spec, if anything it might add more code into the mix. |
|
Ok cool. I wonder if we shouldn't even bother with StringSpec, kinda seems pointless to mix up plain strings with function calls. Same for free spec? Thoughts ? |
That's fair, I will bring it back to withData, as long as we keep withData alive tho, these are my favourite specs :) |
- format previous data specs
- fix previous tests for descriptor
|
@sksamuel and @AlexCue987 all possible specs are done - please have a look and if we are all happy I can do the docs |
| // only counting tests within the shoulds | ||
| beforeEachCounter shouldBe 36 |
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.
introduces
withXXXfor each combination in behaviour spec - there will be follow up PRs for the remaining of specs.Docs can potentially be updated in a final PR