Reputation: 31
I am trying to create Test cases during runtime.
Background: I'm calling the test like this:
public class XQTest {
XQueryTest buildTest = new XQueryTest();
@Test
public void test() throws Exception {
buildTest.test();
}
}
Afterwards it searches the FileDirectory for matching Files and build tests from it.
XQueryTest.java
tester = new XQueryTester(a, b);
tester.testHeader(c, d);
XQueryTester.java performs the actual assertion.
Is it possible to "outsource" these actual Testcases, so it's easier to Identify which test failed on jenkins, because at the moment I only have One Test (XQTest.java) which generate serveral tests. Another problem is, if one test fails, the whole Test failed and skips the rest, even though it's just a part of the whole.
Upvotes: 0
Views: 1853
Reputation: 11212
Junit5 supports a runtime tests via the TestFactory and DynamicTest concepts.
See
Upvotes: 1