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
Corrections regarding JUnit Jupiter parameterized test support #3
Comments
Thank you :) Yet the credit goes to the JUnit team since you guys made this possible by introducing the JUnit Platform. Thank you for pointing out the irregularities in the documentation. You're right; the parameter system in JUnit is more powerful than I thought. I need a bit of time to study it more; I'll then post the documentation proposal here and we can discuss. I'm trying to prototype a builder-based testing tool as opposed to traditional annotation-based tool; yet I probably fail to express the disadvantages I see with the annotation-based approach. |
I played with the |
Sounds good! Thanks for making the change. FYI: we are also considering adding support for "parameterized test classes" in an upcoming release of JUnit Jupiter. Details here: junit-team/junit5#878 |
😊 |
First and foremost, this looks like an interesting test framework, and it's always cool to see people implementing their own
TestEngine
for the JUnit Platform!I read through the
README
and noticed a few points regarding JUnit Jupiter's support for parameterized tests which are technically incorrect.So I'd be grateful if you could reword the following sections.
Thanks in advance!
Parameters actually do not need to be known up front. They can be loaded from any source of your choosing dynamically and programmatically. You can implement a custom
ArgumentsProvider
or use a@MethodSource
that receives parameters that are dynamically supplied by a factory method.One can of course choose to use an annotation such as
@ValueSource
to define static parameters, but that is not the only choice.So you could generate the parameters dynamically, load them from a file, read them from a database, etc. The world is your oyster. 😉
There are literally zero restrictions on parameter types when using a
@MethodSource
or customArgumentsProvider
.The text was updated successfully, but these errors were encountered: