Run NUnit with Jenkins

Good morning.

I want to configure a Jenkins server to run NUnit with the Jenkins NUnit plugin , but I try a lot of things and it doesn't work.

I click on the button ** Add build step ** → Run the Windows command command but I saw here http://stackoverflow.com/questions/9121312/how-do-you-run-nunit-tests-from-jenkins, then I set up this form:

"c: \ program files \ nunit \ bin \ nunit-console.exe" $ (local project) \ $ (DLLTest) .dll

this form returns an error, but I try to do this in the bat file and nothing happens and I put start in front of the first line. Open NUnit, but nothing happens, in Jenkins the building begins, but never ends.

what am I doing wrong?

+1
source share
1 answer

This is how I run it for a specific hard-coded project

"C: \ Program Files \ NUnit 2.6 \ bin \ nunit-console.exe" "nUnitTests \ bin \ Release \ nUnitTests.dll" / xml = nunit-result.xml

I needed to specify the xml output to ensure that the Violations plugin (which I use) can pick up the output and report correctly, which can help you when you earn it.

Have you tried using% variable% instead of $ variable? For example, the Windows command line uses% WORKSPACE%, not $ WORKSPACE. This is what I did in my FxCop / StyleCop teams.

+4
source

Source: https://habr.com/ru/post/979350/


All Articles