Please support nunitlite for testing.

curtis.wensley's Avatar

curtis.wensley

04 Jun, 2014 03:25 PM

Hi,

We're using nunitlite.dll instead of nunit.framework.dll for our testing framework to be cross platform. It would be nice if the testing framework for AppVeyor would be updated to support this. I've tried setting the test assemblies directly, and it still refused to run the tests.

This is simply a detection problem - nunit.exe is perfectly capable of running tests on an assembly using nunitlite, so adding this support should be fairly straight forward.

I understand I can write my own script to run the tests, though it would be great if this was supported right out of the box.

Thanks for all the hard work on making AppVeyor great!

  1. Support Staff 1 Posted by Feodor Fitsner on 04 Jun, 2014 04:02 PM

    Feodor Fitsner's Avatar

    Sure, will take a look into that!

    - Feodor

  2. Support Staff 2 Posted by Feodor Fitsner on 04 Jun, 2014 05:26 PM

    Feodor Fitsner's Avatar

    Hm, that's strange. I ran NUnitLite assembly with nunit-console.exe and got exception in Assert.AreEqual statement. Do I need some specific version of NUnit to run NUnitLite tests?

  3. 3 Posted by curtis.wensley on 05 Jun, 2014 05:29 AM

    curtis.wensley's Avatar

    We are using nunitlite.dll from the nunit 2.9.6 development release, which works fine with at least nunit-console.exe v2.6.3 (at least with my testing). It also works when using the Portable.NUnitlite nuget package.

    However, I didn't realize that nunitlite 1.0.0 from nuget doesn't work. Apologies, it sounds like it may not be as straight forward as I thought.

    For now, I am certainly happy to just write my own scripts to run the test.

  4. Support Staff 4 Posted by Feodor Fitsner on 05 Jun, 2014 05:27 PM

    Feodor Fitsner's Avatar

    Hm, it's getting really confusing :) This page (https://launchpad.net/nunit-3.0) says "NUnit Framework 2.9.5 Released on 2010-07-30 (!!!)", but the latest official release here (http://www.nuget.org/packages/NUnit/) is 2.6.3 (October 2013) and this is what we have on build workers. The project is being moved to GitHub (https://github.com/nunit/nunit-framework) which has the latest "release" 2.9.6 (https://github.com/nunit/nunit-framework/releases).

  5. 5 Posted by curtis.wensley on 05 Jun, 2014 05:33 PM

    curtis.wensley's Avatar

    Yeah, nunit/nunitlite releases are certainly all over the map.

    Unfortunately, it makes having a consistent unit test framework for limited/mobile platforms and desktop very difficult, while still taking advantage of tooling.

    Fortunately, using Portable.NUnitLite does indeed work correctly with appveyor using a custom build script. E.g. https://ci.appveyor.com/project/cwensley/eto/build/tests

  6. Support Staff 6 Posted by Feodor Fitsner on 05 Jun, 2014 05:49 PM

    Feodor Fitsner's Avatar

    Yeah, looks nice and, indeed, it's working with NUnit 2.6.3. I think we could add Portable.NUnitlite into tests auto discovery.

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:44 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

 

26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM
20 Sep, 2024 05:50 PM