Open awturner opened 4 years ago
Ping?
To ensure that the @FromDataPoints annotation correctly enforces that data points are used as specified and raises an error if there are no matching data points, you can use JUnit's Assume class. This will help ensure that if the specific data points are not provided, the tests will fail with a clear message. @awturner
1.import org.junit.Assume;
2.Use Assume.assumeTrue
to check if the data points are available before running the tests.
@awturner could you assign me this i'll just try to bebug it?
It is surprising that these
@FromDataPoints
-annotated parameters receive the same values as if the annotation were omitted. This means that typos in data point names aren't flagged as errors.If the
@FromDataPoints
is present, and nothing matches, it would be helpful to raise "Never found parameters that satisfied method assumptions.".