-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 ability to use datasource in class with @Nested Tests #1411
Comments
There is no built-in mechanism for achieving that. If you just want the list of numbers, you could of course store them in a field of type |
Numbers was just an example. |
Also for some reason class with nested tests runs faster, than class with single test with the same number of checks and actions |
I cannot imagine how that could be the case since the execution of a class along with its nested classes technically requires more work. So, if you can provide a small project that proves that, we'd be interested in seeing that (in a separate GitHub issue). Cheers |
Great. Thanks for the feedback! |
Overview
Right now tests located in a
@Nested
class run only after tests in enclosing classes have finished their execution. Such behavior doesn't allow one to run test classes with different values.If we run the following test class:
... we will see that all nested tests received only the last number (4).
Is there any way to send all provided numbers to nested tests?
Related Issues
The text was updated successfully, but these errors were encountered: