开发者

Method specific logging

开发者 https://www.devze.com 2022-12-21 06:01 出处:网络
Environment: JUnit 4, JDK 6 I would like to log all test names (annotated with @Test) and figure out the amount of time taken to execute each tests executed by JUnit in a standard J2SE environment.

Environment: JUnit 4, JDK 6 I would like to log all test names (annotated with @Test) and figure out the amount of time taken to execute each tests executed by JUnit in a standard J2SE environment.

Should I rely on in-built JDK logging Logger.entering / exiting with System.currentTimeInMillis or 开发者_StackOverflow中文版is there a better way to do this.


What about the XML files JUnit produces? They contain the tests run (classname & method name) and the time they took to run.

Example XML document

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号