JUnit @AfterClass run time is added to a poor testcase :(

后端 未结 2 1927
别跟我提以往
别跟我提以往 2021-01-22 00:48

I\'m facing a slight JUnit inconvenience regarding the run time for each test to run.

I have an @AfterClass annotation and the last test that runs will get

2条回答
  •  忘掉有多难
    2021-01-22 01:07

    How do you include/consider runtime in the last test?

    If you are measuring performance, use a micro-benchmark. Check out junit-benchmark, I think it's one of the easiest micro-benchmarking libraries.

提交回复
热议问题