WorkAround for problem IAnnotationTransformer and Class Tests

24 views
Skip to first unread message

Baubak

unread,
Jun 5, 2021, 7:34:19 PM6/5/21
to testng-users
Hi,

I have a problem in 6.14.3 for which I need a workaround.

I have written an IAnnotationTranformer that injects test groups to tests. The problem arises in the following case:
  • @Test is on the class level
  • I have two unique test classes with the same @Test annotation values (groups+description)
First of all the problem is that one of the test classes (and its methods will be ignored). I have filed a bug for this to have it documented: https://github.com/cbeust/testng/issues/2585

I can sort of by pass the issue in two cases:
* Add a unique description to each test class

Now the problem is that I would like to see if there are dynamic workarounds.

Also if you have some explanation for this I would love to hear it.
Reply all
Reply to author
Forward
0 new messages