Questions tagged [jenkins-mstest]

Jenkins's MSTest plugin

This plugin converts MSTest TRX test reports into JUnit XML reports so it can be integrated with Jenkin's JUnit features

Site: https://wiki.jenkins.io/display/JENKINS/MSTest+Plugin

Github: https://github.com/jenkinsci/mstest-plugin

17 questions
4
votes
1 answer

MSTest.exe finds no test cases via cmd, but works fine in VS2015 IDE

I have added a Unit Test App(Universal Windows) Project in Visual Studio 2015. It discovers and runs all test cases in Test Explorer in IDE correctly. But when running MSTest.exe from command line, it gives the message "No tests to execute". Command…
3
votes
1 answer

How to exclude/ignore a project(Dot Net) while configuring a Jenkins job

To build the solution using Jenkins, the physical path of "MSBuild.exe" & ".sln" file has been configured correctly. All the projects built successfully except MSTEST project. The reason behind this is 'the MSTEST project needs Visual-Studio to be…
Pranav Kumar
  • 249
  • 1
  • 5
  • 16
2
votes
0 answers

Jenkins job stucks at the end after running all unit tests

The Jenkins executes all unit tests but in the end I'm getting this message in output: ... Passed test_name... Closing app with package full name 'app_full_name'. The active test run was aborted. Reason: One or more errors occurred. Closing app…
gmojunior
  • 292
  • 1
  • 4
  • 7
2
votes
4 answers

Locate MSTest.exe using powershell

I'm in the process of automating my .Net solution build to be completely in PowerShell. I want to locate MSTest.exe using PowerShell. I used the following script to locate MSBuild.exe and I hope that I can have something similar to locate…
Ebeid ElSayed
  • 1,126
  • 2
  • 15
  • 32
2
votes
2 answers

Jenkins job dsl and MSTest integration

Jenkins Job DSL plugin is an extremely nice way to store CI config in repo and vary it from branch to branch. The question is - is there a natural or close to natural way to run MSTest tests, parse results and display them. Right now I do a…
1
vote
2 answers

Type load exception during discovering MSTest Framework tests

Recently when we tried to run test with MSTest from Jenkins we received a 'TargetInvocationException' error. Today I switched from MSTest to VsTest.Console.exe and although I was able to get a more detailed error message, the problem is the same. I…
1
vote
3 answers

MSTest .trx file display using Xunit Plugin and Jenkins Piepline

I'm trying to display MStest, Nunit3, Nunit2 results using Xunit Plugin and using Jenkins pipeline and have not been successful with the same. I can't find proper documentation for the Xunit Plugin and all the various required parameters for the…
Jose
  • 1,333
  • 5
  • 20
  • 38
1
vote
1 answer

Fail the Jenkins build if unit test execution time exceeds limit

I would like to fail my builds if ANY particular unit test execution time (not the summary tests run time) exceeds certain reasonable limit, say two seconds. I am using MSTest. Thanks!
dmitshap
  • 31
  • 4
0
votes
0 answers

MsTest Unit tests projects execution order in .net

I have 6 unit tests projects in my solution, what will be execution order of unit tests projects? The reason why I am asking this is because I have 1 integration test project and 5 unit test project and in our ci/cd pipeline I want to execute unit…
0
votes
0 answers

Need help in migrating CruiseControl.Net to Jenkins for MSTest Automation Projects

Currently in our company we are executing tests from CCNet (in Automation VM) by specifying different build arguments, however I feel it is now best to migrate to better automation server which is Jenkins I am new to Jenkins world however I started…
0
votes
0 answers

Cannot use WebClient.DownloadString when address variable include "/"

i'm trying to send a request to my rabbitmq service in my automated tests, using WebClient object. code works perfectly on my local machine when running tests in debug mode in visual studio. when running tests in jenkins, using MSTest, web call…
2bis
  • 55
  • 11
0
votes
1 answer

Error while running unit test cases through Jenkins: Could not load file or assembly 'Microsoft.QualityTools.Testing.Fakes, Version=11.0.0.0'

Written unit test cases using MS Test Framework for our project which is on C# and using Fakes to bypass the DB call. Test cases are running fine in Visual Studio 2015. But when try to run through Jenkins Job it’s giving below error message: Error…
Jain Prince
  • 393
  • 1
  • 6
  • 19
0
votes
1 answer

Jenkins: MSTest: Unable to specify mutiple test result files to be converted to JUnit XML format

While automating build process using Jenkins, we are using MSTest plugin to convert the generated *.trx files to JUnit xml format so that it can be shown in build report. This plugin is working fine with a single file. eg: MyProject/TestResults.trx.…
Ashutosh Singh
  • 609
  • 6
  • 21
0
votes
1 answer

create AWS EC2 Linux service's machine as Jenkins master and local Windows machine as slave

I have created EC2 Linux service and install Jenkins on it. Also installed Jenkins on my local windows machine. I want to create Linux server as master and Windows system as Slave in Jenkins. When I tried to connect master and slave, I got an error.…
0
votes
1 answer

Jenkins "SonarQube plugin" is not reading argument "/d:sonar.cs.vstest.reportsPaths=" to pass unit test result file path generated by MSTest plugin

I am using MSTest for unit test in jenkins. I am able to successfully integrate MSTest plugin with Jenkins. it's performing Unit tests and generating a TestResults.trx file at specific location. Now, I want to pass that file to SonarQube. So, I can…
Meet101
  • 711
  • 4
  • 18
  • 35
1
2