开发者

Method specific logging

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜