tfs2015

How to show test coverage reports for successful TFS builds  #angularjs #reactjs

  • I have a build definition that cleans, compiles and runs jasmine tests and using plato (npm install plato) creates a html report on the server.
  • The second screen shot shows the report page the Plato package produces for Jasmine tests.
  • I’ve successfully included NUnit tests to be executed in our build, shown in the screen shot.
  • I want developers looking at the build to be able to open the report for the build that they’re looking at.
  • Screenshot #1 – NUnit test results (as seen in TFS)

Is it possible and if so, how to have TFS display jasmine test results? I am successfully creating jasmine test reports using the plato npm package on the server during a build although I’m yet to link the report to the TFS build success page in TFS. Can someone please advise how this is possible?

@ng_real_ninja: How to show test coverage reports for successful TFS builds #angularjs #reactjs

Is it possible and if so, how to have TFS display jasmine test results? I am successfully creating jasmine test reports using the plato npm package on the server during a build although I’m yet to link the report to the TFS build success page in TFS. Can someone please advise how this is possible?

Many thanks!!

Update

Initial comments refer to looking at the following link although I think this is a general link in TFS as opposed to a link relative to the “current” build.

I have a build definition that cleans, compiles and runs jasmine tests and using plato (npm install plato) creates a html report on the server. I want developers looking at the build to be able to open the report for the build that they’re looking at. Please confirm is the suggested extension link is still applicable because I’ve tried it just now without success.

Please advise.

Update

I’ve successfully included NUnit tests to be executed in our build, shown in the screen shot. I want to have a similar feature for Jasmine. The second screen shot shows the report page the Plato package produces for Jasmine tests. I would like this available within the TFS results page.

Screenshot #1 – NUnit test results (as seen in TFS)

Screenshot #2 – Plato produced jasmine results report

This reported is generated on the server in a build definition step.

I’ve updated my question with screenshots, I am looking for something like the second screen shot to be available within the successful build page. Anything would be a good start, i.e. number of tests, name of tests, how many tests etc.. – Martin yesterday

let me know if you need anything else. Many thanks, – Martin 23 hours ago

You can do it through extension, the simple way is that you can send the request (HTTP) to get Plato produced jasmine results report (Screenshot #2) and display the response result to the HTML page of build result extension. – starain-MSFT 15 hours ago

okay great, can you provide steps to do this please? I tried making an extension but I wasn’t sure what to do. – Martin 7 hours ago

You can add a custom section in build result through extension, with this way, you can add the link in that custom section.

tfs2015

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.