NUnit test with WinRT references not found or ran

nathan's Avatar

nathan

05 Mar, 2015 04:50 AM

This branch has two unit test libraries that are created, but only one is ran by the Unit Test runner.

The solution contains a second Windows 8 Store (WinRT) library and a .NET 4.5 library of unit tests (NUnit.framework.dll 2.6.4) that references the WinRT library. This uses the TargetPlatformVersion attribute.

Both are generated:

RabbitMQ.Client.Unit -> C:\projects\rabbitmq-dotnet-client\projects\client\Unit\build\bin\unit-tests.dll

.....

RabbitMQ.Client.Unit.WinRT -> C:\projects\rabbitmq-dotnet-client\projects\client\Unit.WinRT\build\bin\unit-tests.dll

But only one is ran:

Discovering tests...OK nunit-console.exe "C:\projects\rabbitmq-dotnet-client\projects\client\Unit\build\bin\unit-tests.dll" /exclude=RequireSMP

I tried setting the config to find the test assemblies by name: "unit-tests.dll", but that didn't help. Can you take a look on why the second unit-test.dll isn't being found and ran?
https://ci.appveyor.com/project/ngbrown/rabbitmq-dotnet-client/build/3.4.5.41

  1. Support Staff 1 Posted by Feodor Fitsner on 05 Mar, 2015 07:03 AM

    Feodor Fitsner's Avatar

    Will take a look.

  2. 2 Posted by nathan on 06 Mar, 2015 07:44 AM

    nathan's Avatar

    For now I am resolving it by using powershell to look for the files:

    Get-ChildItem -Recurse | ? { $_.FullName -imatch '\\bin\\unit-tests.dll$' } | % { nunit-console /framework:net-4.0 /exclude=RequireSMP $_.FullName }
    

    We don't need this looked into for now.

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