[sonar-dev] TFS 2013 TRX imprt

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[sonar-dev] TFS 2013 TRX imprt

jabbera

Hello,

 

I’m using sonarqube 5.1, and snapshot C# library against TFS 2013

 

I’m unable to import trx files since the sonar-dotnet-tests-library thinks that all the following attributes are required:

 

      int passed = xmlParserHelper.getRequiredIntAttribute("passed");

      int failed = xmlParserHelper.getRequiredIntAttribute("failed");

      int errors = xmlParserHelper.getRequiredIntAttribute("error");

      int timeout = xmlParserHelper.getRequiredIntAttribute("timeout");

      int aborted = xmlParserHelper.getRequiredIntAttribute("aborted");

 

If they are 0, they are actually omitted in 2013. (This may be a difference from 2012)

 

Please see pull: https://github.com/SonarCommunity/sonar-dotnet-tests-library/pull/12

 

For details and a fix.

 

Thanks,

Mike

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [sonar-dev] TFS 2013 TRX imprt

Dinesh Bolkensteyn-2
Thanks Micheal - I'll attempt to reproduce the issue locally and comment on the PR.


On Thu, May 21, 2015 at 8:30 PM, Michael Barry <[hidden email]> wrote:

Hello,

 

I’m using sonarqube 5.1, and snapshot C# library against TFS 2013

 

I’m unable to import trx files since the sonar-dotnet-tests-library thinks that all the following attributes are required:

 

      int passed = xmlParserHelper.getRequiredIntAttribute("passed");

      int failed = xmlParserHelper.getRequiredIntAttribute("failed");

      int errors = xmlParserHelper.getRequiredIntAttribute("error");

      int timeout = xmlParserHelper.getRequiredIntAttribute("timeout");

      int aborted = xmlParserHelper.getRequiredIntAttribute("aborted");

 

If they are 0, they are actually omitted in 2013. (This may be a difference from 2012)

 

Please see pull: https://github.com/SonarCommunity/sonar-dotnet-tests-library/pull/12

 

For details and a fix.

 

Thanks,

Mike


Loading...