Package dev.dokimos.junit
Annotation Interface DatasetReporter
Marks a static field that supplies the
Reporter for DatasetSource tests.
Run reporting is opt-in. When a test class declares a static field of type Reporter
annotated with @DatasetReporter, DatasetRunExtension opens a run for each
@DatasetSource method and reports every parameterized invocation as an item result.
When no such field is present, no run is opened and the test behaves as a plain parameterized
test.
The annotated field must be static and assignable to Reporter. Its lifecycle
(creation and closing) is owned by the test class; the extension never
closes a reporter supplied this way.
class QaEvaluationTest {
@DatasetReporter
static final Reporter reporter = new DokimosServerReporter(...);
@ParameterizedTest
@DatasetSource("classpath:datasets/qa.json")
void testQa(Example example) {
...
}
}