Testing the project
Next, we are going to test our project. We have various tests in place, but we will start with the unit tests. We will need to install a new Jenkins plugin before we can publish our TRX results to Jenkins. So, go to the Jenkins plugin manager and search for mstest. You should see two plugins, the MSTest plugin and the MSTestRunner plugin. The MSTestRunner is for running tests using MSTest. We are using xUnit though and we are running it through OpenCover using the command line anyway. So, we need the MSTest plugin, which can transform TRX files to the JUnit format and publish them to Jenkins.
We have two choices now. We can create a new project, like we did with the Node.js website, or we can just add a new build step ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access