Hi,
Please when possible update your nunit runner to support nunit 3
NUnit.Core.UnsupportedFrameworkException: Skipped loading assembly FsSonarRunnerCore.Test because it references an unsupported version of the nunit.framework, 3.0.5674.19278
Server stack trace:
at NUnit.Core.Builders.TestAssemblyBuilder.GetCandidateFixtureTypes(Assembly assembly, String ns)
at NUnit.Core.Builders.TestAssemblyBuilder.GetFixtures(Assembly assembly, String ns)
at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, Boolean autoSuites)
at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, String testName, Boolean autoSuites)
at NUnit.Core.TestSuiteBuilder.BuildSingleAssembly(TestPackage package)
at NUnit.Core.TestSuiteBuilder.Build(TestPackage package)
at NUnit.Core.SimpleTestRunner.Load(TestPackage package)
at NUnit.Core.ProxyTestRunner.Load(TestPackage package)
at NUnit.Core.ProxyTestRunner.Load(TestPackage package)
at NUnit.Core.RemoteTestRunner.Load(TestPackage package)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at NUnit.Core.TestRunner.Load(TestPackage package)
at NUnit.Util.TestDomain.Load(TestPackage package)
at NUnit.Core.ProxyTestRunner.Load(TestPackage package)
at NUnit.Util.RemoteTestAgent.AgentRunner.Load(TestPackage package)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [1]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at NUnit.Core.TestRunner.Load(TestPackage package)
at NUnit.Core.ProxyTestRunner.Load(TestPackage package)
at NUnit.Util.ProcessRunner.Load(TestPackage package)
at NUnit.ConsoleRunner.ConsoleUi.Execute(ConsoleOptions options)
at NUnit.ConsoleRunner.Runner.Main(String[] args)
Command exited with code -100
Thanks in advance
Jorge Costa

#1 Posted by Feodor Fitsner Support staff on 24 Jul, 2015 02:56 PM
Hi Jorge,
Could you please clarify where/when do you get this error?
- Feodor
#2 Posted by Jorge Costa on 07 Aug, 2015 04:39 PM
Hi Feodor,
Please see this log
https://ci.appveyor.com/project/jorgecosta/sonar-fsharp-plugin/build/43
Jorge Costa
#3 Posted by Feodor Fitsner Support staff on 07 Aug, 2015 07:04 PM
You can update NUnit runners to 3.0 by the following commands:
https://gist.github.com/FeodorFitsner/27ebfd99204f2d8e1cc4
#4 Posted by Jorge Costa on 09 Aug, 2015 02:47 PM
Thank you, works very well
br,
jc
#5 Posted by aloisdg on 22 Sep, 2015 07:37 AM
Thank you
#6 Posted by Jeremy Meng on 16 Nov, 2015 10:04 PM
in NUnit-3.0.0-rc2, the console runner has been renamed to nunit3-console.exe. The above suggested workaround would need to rename the exe as well?
#7 Posted by aliman on 17 Nov, 2015 10:11 AM
Hi Feodor,
I configured nunit as you suggested using this link https://gist.github.com/FeodorFitsner/27ebfd99204f2d8e1cc4
However after test execution result is not pushed to tests tab. It only says "Results (nunit3) saved as TestResult.xml". Should we use rest api to upload this result?
Is there any plan to integrate nunit 3 natively?
Thanks
Artem
#8 Posted by Feodor Fitsner Support staff on 17 Nov, 2015 07:02 PM
Yeah, we should add native support for it. I've added a new issue: https://github.com/appveyor/ci/issues/498
#9 Posted by thomas.clegg on 01 Dec, 2015 01:02 AM
Note if you modify the code snippet in the gist above to use 3.0.0 final rather than the beta you need to add the line
move C:\Tools\NUnit3\bin\nunit3-console.exe C:\Tools\NUnit3\bin\nunit-console.exesince the exe name changed#10 Posted by Feodor Fitsner Support staff on 01 Dec, 2015 01:15 AM
Thanks for the note!
#11 Posted by Rasmus Lauridse... on 05 Dec, 2015 11:02 PM
Looks like NUnit3 was added to build images, which makes the above script lock up because it is waiting for user input.
It is easily remedied though, since this means we can now remove the download script and just set the path to the right nunit version.
should do it now
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:02 AM.