Run Nunit tests in Jenkins

1,170 views
Skip to first unread message

Rafael s

unread,
Apr 20, 2015, 3:35:20 PM4/20/15
to nunit-...@googlegroups.com
Hello guys,

Currently I have some tests written using Selenium, C# and Nunit (running locally), but I need to run them in jenkins.

Can someone help me configure it? It's tricky to find this on google.

Cheers,
Rafael

Rafael s

unread,
Apr 22, 2015, 12:37:57 PM4/22/15
to nunit-...@googlegroups.com
Actually now I need only generate a DLL for a particular test

Charlie Poole

unread,
Apr 22, 2015, 1:22:53 PM4/22/15
to NUnit-Discuss
I think you will need to give more detail about what you are able to
do and not able to do in order to get help. :-)
> --
> You received this message because you are subscribed to the Google Groups
> "NUnit-Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nunit-discus...@googlegroups.com.
> To post to this group, send email to nunit-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/nunit-discuss.
> For more options, visit https://groups.google.com/d/optout.

Rafael s

unread,
Apr 23, 2015, 5:49:41 PM4/23/15
to nunit-...@googlegroups.com
You is right, Charlie.

Well, to run nunit in jenkins, I need to do this:

  1. Add the NUnit Plugin to Jenkins
  2. In your project go to Configure -> Build -> Add a build step
  3. In the dropdown scroll down to -> Execute Windows Batch Command
  4. Ensure this step is placed after your MSBuild step
  5. Add the following, replacing the variables:

Single dll test:

[PathToNUnit]\bin\nunit-console.exe [PathToTestDll]\Selenium.Tests.dll /xml=nunit-result.xml


but I did not understand the part to generate xml. how can I generate an XML with my tests in?

Cheers,
Rafael

Em segunda-feira, 20 de abril de 2015 16:35:20 UTC-3, Rafael s escreveu:

Charlie Poole

unread,
Apr 23, 2015, 5:59:51 PM4/23/15
to NUnit-Discuss
The /xml=nunit-result.xml option tells NUnit to create a file
nunit-result.xml and put the test results there. You don't have to
create it.

Charlie
Reply all
Reply to author
Forward
0 new messages