I\'m facing with the following problem: I created two classes which include @Tests with priority attribute:
@Test( priority = 1 ) public void testA1() {
You can just provide @Test(testName="test1") / @Test(testName="test2") at the top of each class, and the priorities will be automatically grouped per class. Of course you keep the existing annotations.
@Test(testName="test1") / @Test(testName="test2")