Answer the question
In order to leave comments, you need to log in
How to annotate all classes with @BeforeClass?
I have test classes, tests are run using gradle.
It is necessary to annotate all classes with @BeforeClass and @AfterClass that will perform their specific actions.
I tried to create an interface with these annotations and inherit in all the necessary classes
. The problem is that the @BeforeClass and @AfterClass annotations are executed before the launch of each class called by the gradle.
Add. question: do not tell me how to run only one class with a gradle, not all at once.
Answer the question
In order to leave comments, you need to log in
In such a formulation of the question
It is necessary to annotate all classes with @BeforeClass and @AfterClass that will perform their specific actions.
The problem is that the @BeforeClass and @AfterClass annotations are executed before each gradle class is called.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question