Unable to view Test Result Link

119 views
Skip to first unread message

sandhyarani...@gmail.com

unread,
Aug 5, 2016, 2:10:23 AM8/5/16
to Jenkins Users
Hi,

We are using Jenkins to run unit tests. We have configured a job and given the msbuild and batch file to run the scripts.
We are successful in executing the scripts, the problem is we are not able to view any test results. 

We are not having Test Result link in the build history.











We are using Jenkins2.6 version, also tried with different versions of  Jenkins, yet we are facing the same issue.

Added the following plugins:
MSBuild
MSTest
MSTest Runner
xvnc
VSTest Runner

Also, given the path for generating MSTest Results in the post build actions.

Would like to know if we are needed to add any plugin to get the link.

Thanks.

suresh kumar

unread,
Aug 6, 2016, 5:54:37 AM8/6/16
to Jenkins Users
Hi Sandhya,
Which technology you are using for writing unit tests, e.g. NUnit or VSTests or MSTests
In the post build section respective report publisher we have to choose and providing the path of xml report generated by the executor.
So that the Unit Tests results will be populated in Jenkins

-Suresh

sandhyarani...@gmail.com

unread,
Aug 8, 2016, 6:58:19 AM8/8/16
to Jenkins Users

Thanks for the reply Suresh!
We used C# code with MSTest framework.\
We tried to get the .xml report by using "Publish JUnit test result Report" in the Post Build action.
We tried to give the path to create an xml report in the workspace, but it throws the below error.

"ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?"

Could please provide us steps to configure the Junit test result report.


We also configured test result analyzer plugin, but gets the error as shown in the attachment.

Which needs to be displaying the results as shown in this page https://wiki.jenkins-ci.org/display/JENKINS/Test+Results+Analyzer+Plugin

Regards,
Sandhya
TestResultAnalyzer.png

felix schwitzer

unread,
Aug 8, 2016, 3:39:28 PM8/8/16
to jenkins...@googlegroups.com

Maybe you should use xunit plugin to transform and publish the xmlreports.

I'm not familiar with mstest but I use this technique for publishing cppunit and ctest result reports, and

xunit has an option to publish mstest results too.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e8d7f854-bd1d-400c-95bd-6585826de59e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sandhyarani...@gmail.com

unread,
Aug 9, 2016, 6:56:35 AM8/9/16
to Jenkins Users
Thanks for the reply Flx!
We will try it and let you know the result.

suresh kumar

unread,
Aug 10, 2016, 11:19:56 AM8/10/16
to Jenkins Users
Hi Sandhya,
Install "MS Test Plugin"(https://wiki.jenkins-ci.org/display/JENKINS/MSTest+Plugin).
MS Tests generates .trx reports using the above plugin, trx will be converted into Junit xml report and publishes.

Try above steps and let me know still you face the issue. Or else this weekend I will be on Jenkins IRC to help.

-Suresh
Reply all
Reply to author
Forward
0 new messages