Report test status back to TFS after build?

Ask general questions here.
dmconsulting1
Posts: 91
Joined: Fri Nov 08, 2019 3:23 pm

Report test status back to TFS after build?

Post by dmconsulting1 » Fri Nov 22, 2019 3:30 pm

Right now, I have added a post publish build task to the TFS build description to run a batch script. The batch script is used to call the solution executable and launch the tests on a test box.

I know I can set Ranorex to publish the report somewhere, but is there a way to send a Pass/Fail result back to TFS as an overall build status?

I don't currently have Ranorex Studio integrated into TFS.

User avatar
RobinHood42
Posts: 324
Joined: Fri Jan 09, 2015 3:24 pm

Re: Report test status back to TFS after build?

Post by RobinHood42 » Mon Nov 25, 2019 12:45 pm

Hey,

Probably you should ask this question in the Microsoft forum. How about using an exit code of the test executable and use it as a return value for your batch file?
https://stackoverflow.com/questions/205 ... ript-fails

Cheers,
Robin

dmconsulting1
Posts: 91
Joined: Fri Nov 08, 2019 3:23 pm

Re: Report test status back to TFS after build?

Post by dmconsulting1 » Mon Nov 25, 2019 3:38 pm

Oh hey, that looks like it would work. Awesome, thanks a lot!