Running NUnit in Mono with Jenkins

I apologize if this has already been answered elsewhere, but I can not find anything after an hour of google search.

I have a Jenkins CI environment configured on an Ubuntu server. Now he is successfully compiling C # code with mono. I would like it to be able to run NUnit tests as well.

What is the best way to do this? Is there a way that does not include the slav'd windows version of Jenkins, possibly with a nunit console? (It would be great if, after running this command, I could view the results through the Jenkins web interface)

+4
source share
1 answer

It seems I figured it out with a little messing around.

I configured the jenkins job in the Build section and added the "Execute shell" command from

nunit-console "$WORKSPACE/path/to/Tests.dll" 

and then later, as a post build event, I took the resulting xml (with the NUnit plugin for jenkins) and it displays all this in the web interface.

One caveat note is a simple project, so I don't know if this will work in mono with more advanced tests, etc.

+2
source

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


All Articles