I am running NUnit 3.0.1 as a build task in Bamboo CI after the MSbuild task. I am getting the following error Invalid argument: -xml=TestResult.xml Running a bat file as specified in How to run NUnit Runner in Atlassian Bamboo with NUnit 3 also didnt work as it gave me the error nunit3-console.exe is not a recognized command
Asked
Active
Viewed 886 times
0
-
Possible duplicate of [How to run NUnit Runner in Atlassian Bamboo with NUnit 3](http://stackoverflow.com/questions/34053704/how-to-run-nunit-runner-in-atlassian-bamboo-with-nunit-3) – Chris Feb 16 '16 at 14:00
1 Answers
1
Bamboo CI doesn't appear to fully support NUnit 3.X yet, see the issue here.
The error you are seeing is because NUnit 3 no longer supports the -xml
option.
Looking at the notes on the Bamboo issue, it looks like the best appoach is to run NUnit3 as a script task (using the option --result=YOURPATH;format:nunit2
to format the results as NUnit2 would have), and then adding an NUnit Parser Task to merge the results back in.

Chris
- 5,882
- 2
- 32
- 57
-
1the other question's solution didn't work but the link you have posted and the approach you explained did the trick. I was running the Nunit task with options but didn't work, but it worked when I ran it as a script task. – Ajay Bhasy Feb 17 '16 at 04:08