You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if a @ParameterizedTest is not configured properly (at least as demonstrated below), it will be silently disabled; whereas, the improper configuration is actually an error.
... does not result in the test being disabled but rather fails the test with the following error, which is vague at best. What is null? I don't see anything null. I see an empty string, but that's not the same as null.
org.junit.platform.commons.util.PreconditionViolationException: argument array must not be null
It turns out that the above example can be fixed by specifying an empty string as '' within the double quotes (as follows), but I don't think anyone can be expected to infer that as the solution to the null claim in the exception that is thrown.
Overview
Currently, if a
@ParameterizedTest
is not configured properly (at least as demonstrated below), it will be silently disabled; whereas, the improper configuration is actually an error.For example, the following test configuration...
... results in:
... but the above is clearly a user error and not the result of a missing
TestTemplateInvocationContextProvider
.Related Bug
(perhaps worthy of a separate issue)
The following configuration...
... does not result in the test being disabled but rather fails the test with the following error, which is vague at best. What is
null
? I don't see anythingnull
. I see an empty string, but that's not the same asnull
.It turns out that the above example can be fixed by specifying an empty string as
''
within the double quotes (as follows), but I don't think anyone can be expected to infer that as the solution to thenull
claim in the exception that is thrown.Deliverables
The text was updated successfully, but these errors were encountered: