You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I really hope someone can help me out with this. So I work for jbHunt and we have a suite of tests that run using protractor, jasmine2, typescript, and angular through TFS/VSTS Continuous Integration. We are using the Jasmine Reporter JUnit to print the results in TFS for graphs and other types of reporting. The issue we are having is sometimes (its very random) we are getting a "NaN" value returned on the "time" property from the reports. I have uploaded an example of the error. junitresults-RegressiontestSearchRoutesEditRouteFinalize.txt
As you can see the reporter does work (as evidenced by the many steps showing a proper time) but still there are others (regardless of pass or fail) that show NaN. The real issue we are having is the built in TFS module that parses the results has no way to deal with NaN values. That powershell script is out of our control (all in Microsoft's hands) so there isn't anything I can do about it. They return this result when there is a NaN value: ##[warning]Failed to publish test results: TimeSpan does not accept floating point Not-a-Number values.
Is there any fix that can be made on the reporter side that will handle for NaN values? Thank you for your assistance.
The text was updated successfully, but these errors were encountered:
The solution provided by Microsoft did not work, can someone please fix the reporter to ensure no "NaN" values are passed for the "time" in the xml? Even if they are simply converted to a 0 that would be fine. Thank you.
Hello! I really hope someone can help me out with this. So I work for jbHunt and we have a suite of tests that run using protractor, jasmine2, typescript, and angular through TFS/VSTS Continuous Integration. We are using the Jasmine Reporter JUnit to print the results in TFS for graphs and other types of reporting. The issue we are having is sometimes (its very random) we are getting a "NaN" value returned on the "time" property from the reports. I have uploaded an example of the error.
junitresults-RegressiontestSearchRoutesEditRouteFinalize.txt
As you can see the reporter does work (as evidenced by the many steps showing a proper time) but still there are others (regardless of pass or fail) that show NaN. The real issue we are having is the built in TFS module that parses the results has no way to deal with NaN values. That powershell script is out of our control (all in Microsoft's hands) so there isn't anything I can do about it. They return this result when there is a NaN value: ##[warning]Failed to publish test results: TimeSpan does not accept floating point Not-a-Number values.
Is there any fix that can be made on the reporter side that will handle for NaN values? Thank you for your assistance.
The text was updated successfully, but these errors were encountered: