Nunit 3

Jorge Costa's Avatar

Jorge Costa

24 Jul, 2015 09:36 AM

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. Support Staff 1 Posted by Feodor Fitsner on 24 Jul, 2015 02:56 PM

    Feodor Fitsner's Avatar

    Hi Jorge,

    Could you please clarify where/when do you get this error?

    - Feodor

  2. 2 Posted by Jorge Costa on 07 Aug, 2015 04:39 PM

    Jorge Costa's Avatar
  3. Support Staff 3 Posted by Feodor Fitsner on 07 Aug, 2015 07:04 PM

    Feodor Fitsner's Avatar

    You can update NUnit runners to 3.0 by the following commands:
    https://gist.github.com/FeodorFitsner/27ebfd99204f2d8e1cc4

  4. 4 Posted by Jorge Costa on 09 Aug, 2015 02:47 PM

    Jorge Costa's Avatar

    Thank you, works very well
    br,
    jc

  5. 5 Posted by aloisdg on 22 Sep, 2015 07:37 AM

    aloisdg's Avatar

    Thank you

  6. 6 Posted by Jeremy Meng on 16 Nov, 2015 10:04 PM

    Jeremy Meng's Avatar

    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. 7 Posted by aliman on 17 Nov, 2015 10:11 AM

    aliman's Avatar

    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. Support Staff 8 Posted by Feodor Fitsner on 17 Nov, 2015 07:02 PM

    Feodor Fitsner's Avatar

    Yeah, we should add native support for it. I've added a new issue: https://github.com/appveyor/ci/issues/498

  9. 9 Posted by thomas.clegg on 01 Dec, 2015 01:02 AM

    thomas.clegg's Avatar

    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.exe since the exe name changed

  10. Support Staff 10 Posted by Feodor Fitsner on 01 Dec, 2015 01:15 AM

    Feodor Fitsner's Avatar

    Thanks for the note!

  11. 11 Posted by Rasmus Lauridse... on 05 Dec, 2015 11:02 PM

    Rasmus Lauridsen's Avatar

    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.

    set PATH=C:\Tools\NUnit3\bin;%PATH%
    

    should do it now

  12. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:02 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac