-
Enhancement
-
Resolution: Unresolved
-
P4
-
26
When using -DTest=test and test() is part of a @Run method for multiple @Test methods, then the IR framework will treat DTest as if you specified all the @Test methods for that single @Run method.
There is not really much we can do to avoid execution of all the non-interesting @Test methods that you want to exclude with DTest. But we could go a step further and at least exclude IR verification for these other tests run with the same @Run method. This is what this RFE proposes to do.
Example:
@Test
@IR(...)
public void test1() {}
@Test
@IR(...)
public void test2() {}
@Test
@IR(...)
public void test3() {}
@Run(test = {"test1", "test2"})
public void runMultipleTests() {
test1();
test2();
}
Using -DTest=test1:
- Do not run test3().
- New with this RFE: Should only perform IR verification for test1() while still compiling test1() and test2().
There is not really much we can do to avoid execution of all the non-interesting @Test methods that you want to exclude with DTest. But we could go a step further and at least exclude IR verification for these other tests run with the same @Run method. This is what this RFE proposes to do.
Example:
@Test
@IR(...)
public void test1() {}
@Test
@IR(...)
public void test2() {}
@Test
@IR(...)
public void test3() {}
@Run(test = {"test1", "test2"})
public void runMultipleTests() {
test1();
test2();
}
Using -DTest=test1:
- Do not run test3().
- New with this RFE: Should only perform IR verification for test1() while still compiling test1() and test2().