-
-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Times reported in XML for testcases are wrong #731
Comments
I had a quick look, attaching a debugger. The problem seems to be that the timers at https://github.com/etorreborre/specs2/blob/master/junit/shared/src/main/scala/org/specs2/reporter/JUnitXmlPrinter.scala#L45 are still running (timer.isStarted is |
Thanks for having a look. The way the times were taken was quite wrong. I have a fix for it, wait a bit and a new version will be published later on today. |
Awesome! Thank you Eric. 💯 |
BTW, while you're at it, I noticed the scaladoc for HmsTimer.stop is wrong too. It does not return a String at all. |
Thanks I will change that too (and put a return type, I didn't use to do that when I started Scala!). Also you might have to be a bit patient. There's a failing spec that I need to investigate after this change. |
No problem, it's not a big deal really. I just recently noticed CircleCI reported the slowest test alone took 33 seconds which piqued my interest. Historically, the test reports on our old Jenkins instance also reported such long runtimes, but nobody noticed until now. |
FYI, I did just try version 4.5.0; looks good to me. 👍 |
Thanks for the feedback. I'm going to publish a |
OK, I'm holding my breath until the official announcement anyway... 😉 |
OK, just announced it: https://twitter.com/specs2org/status/1105071256112631809 |
Thank you! 💐 |
I am using specs2 version 4.4.1.
When running with
showtimes
the printed times are OK:But looking at the test-report in
target/test-reports/controllers.ConvertControllerSpec.xml
the times are totally off:In reference to #613, I am not using
sequential
.The text was updated successfully, but these errors were encountered: