0

I have three junit test classes - ClassA, ClassB, ClassC which have indiviual test methods in each class.

My requirement is i should run ClassB test class first and then ClassA and then ClassC.

Is possible. i am junit Junit5

Ramu Smartguy
  • 103
  • 1
  • 7
  • 1
    how long [did you search](https://junit.org/junit5/docs/current/user-guide/#writing-tests-test-execution-order)? – Eugene Aug 25 '21 at 12:33
  • I am asking a class level of priority not a method level. @Eugene how long did you took to read this question? – Ramu Smartguy Aug 25 '21 at 15:38
  • this requirement means that your tests do not run in isolation - which means you have a much bigger problem. – Eugene Aug 25 '21 at 15:39
  • @Eugene yes my requirement is like that one class is dependent on another. Even in production it runs the same one step is dependent on other. – Ramu Smartguy Aug 26 '21 at 13:36

0 Answers0