How can I specify JUnit test dependencies?

后端 未结 6 1143
南方客
南方客 2020-12-23 09:37

Our toolkit has over 15000 JUnit tests, and many tests are known to fail if some other test fails. For example, if the method X.foo() uses functionality from Y.bar() and YTe

6条回答
  •  情深已故
    2020-12-23 10:04

    You can declare test dependencies in TestNG, the syntax is almost the same as in your example. I don't think JUnit offers something similar.

提交回复
热议问题