junit5 icon indicating copy to clipboard operation
junit5 copied to clipboard

Introduce zero invocations in test templates and parameterized tests

Open nskvortsov opened this issue 1 year ago • 1 comments

Add a flag to ParameterizedTest to control arguments requirement. This allows users to explicitly opt out from validation of arguments set count and silently skip a test if no arguments are provided

In general, support TestTemplateInvocationContextProvider returning zero invocation contexts. Such providers must override new interface method to indicate that the framework should expect "no context returned"

Resolves #1477

Overview

Implemented the team decision described in this comment


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

nskvortsov avatar Jul 17 '24 18:07 nskvortsov

Need this feature a lot! Is there a forecast for when it will be ready?

pain64 avatar Jul 24 '24 17:07 pain64

Let me know if you are ok with the latest change, I will do the rebase.

nskvortsov avatar Oct 13 '24 20:10 nskvortsov

Let me know if you are ok with the latest change, I will do the rebase.

Thanks for making the changes. I'll take it from here!

marcphilipp avatar Oct 15 '24 08:10 marcphilipp

@nskvortsov Thank you! :+1:

marcphilipp avatar Oct 15 '24 09:10 marcphilipp