achikin / testrail-jenkins-plugin

Integrate test results from Jenkins into TestRail(merged into jenkins main repo)
Apache License 2.0
27 stars 63 forks source link

Results elapsed time in wrong time span format. #7

Closed mschielmann closed 8 years ago

mschielmann commented 8 years ago

When exporting JUnit test results to TestRail I get the following error: {"error":"Field :results.elapsed is not in a valid time span format."} My tests have results.elapsed set to 0s which is not supported by TestRail. The minimum value supported is 1s: https://discuss.gurock.com/t/elapsed-field-datatype-api-question/1089/27

Does anyone else have this problem?

Suggested fix for Result.java, line 47: public String getElapsedTimeString() { return Math.max(1, elapsed.intValue()) + "s"; }

mschielmann commented 8 years ago

This has been solved in pr #8