@RunWith(OrderedRunner.class) public class MyUnitTestClass { ... @Test @Order(order = 2) public void testMethod() { ...
@RunWith(CategoryRunner.class) @Category(cat = "archi") @Category(cat = "server") public class MyUnitTestClass {or
@RunWith(OrderedRunner.class) @Category(cat = "archi") @Category(cat = "server") public class MyUnitTestClass {
categories.properties
file. For example:strictMode=false parser=true runtime= python= ...In this example, only Unit Tests which are in the "parser" category will run.
categories.properties
file. For example:strictMode=false parser=true runtime=true python= ...In this example, only Unit Tests which are in the "parser" category or in the "runtime" category will run.
strictMode=true parser=true runtime=true python= ...In this example, only Unit Tests which are in both the "parser" category and the "python" category will run.
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence