Does new JUnit 4.8.1 @Category render test suites almost obsolete?

后端 未结 1 796
温柔的废话
温柔的废话 2021-02-04 10:12

Given question \'How to run all tests belonging to a certain Category?\' and the answer would the following approach be better for test organization?

  1. define master
1条回答
  •  梦如初夏
    2021-02-04 10:58

    One of the trade-off you have to consider is IMHO that categories are defined within the tests and suites are defined outside. This means, that when you use suites, you know which tests will be run, but when using categories, you do not know unless you inspect tests or simple run them. At the same time, when you look at the test using test suites you do not know in which suite it is contained, unless checking your suites, but using categories, you see it immidiatly.

    0 讨论(0)
提交回复
热议问题