Multiple Test assemblies – only one gets executed

Dave Senn's Avatar

Dave Senn

27 May, 2015 08:55 AM

I’ve two test assemblies in my project (https://ci.appveyor.com/project/DaveSenn/extend/), defined like this (YAML):
test:
  assemblies:
    - .Src\Extend.Testing\bin\$(configuration)\Portable\Extend.Testing.dll
    - .Src\Extend.Testing\bin\$(configuration)\Net40\Extend.Testing.dll

When I look at the build log I can only see the output of one test run… why does appveyor not run both test?

  1. Support Staff 1 Posted by Feodor Fitsner on 27 May, 2015 08:35 PM

    Feodor Fitsner's Avatar

    Will take a look what's wrong with discovering those assemblies.

    For now you can just replace autodiscovery with explicit calls to nunit-console.

  2. 2 Posted by kasper on 10 Mar, 2017 11:34 AM

    kasper's Avatar

    Any progress with this? My definition

    test:
      assemblies:
        - FooCorp.Permissions.Tests.dll
        - FooCorp.Permissions.Client.Tests.dll

    prints

    Discovering tests...OK
    %xunit20%\xunit.console.x86 "C:\projects\FooCorp-permissions\FooCorp.permissions.Tests\bin\Debug\FooCorp.permissions.Tests.dll" -appveyor
    xUnit.net Console Runner (32-bit .NET 4.0.30319.42000)
      Discovering: FooCorp.permissions.Tests
      Discovered: FooCorp.permissions.Tests
      Starting: FooCorp.permissions.Tests
      Finished: FooCorp.permissions.Tests
    === TEST EXECUTION SUMMARY ===

    The artifacts collection, however, works

    artifacts:
     - path: 'FooCorp.permissions/*.nupkg'
     - path: 'FooCorp.permissions.Client/*.nupkg'

  3. 3 Posted by Christian Mikke... on 10 Mar, 2017 12:16 PM

    Christian Mikkelsen's Avatar

    Hi

    We sometimes experience the same issue with auto discovery and when we do not specify the path but only the dll as stated above.
    Any news on a fix?

    Kind regards
    Christian

  4. Support Staff 4 Posted by Ilya Finkelshte... on 11 Mar, 2017 03:20 AM

    Ilya Finkelshteyn's Avatar

    Could somebody please provide a repro in public repository? I could not easily reproduce it...

    Ilya.

  5. 5 Posted by igitur on 21 Aug, 2017 05:46 PM

    igitur's Avatar

    Ilya, you can check the PR at https://github.com/ClosedXML/ClosedXML/pull/315 . I'm quite sure I've set my target assemblies to test, yet the autodiscover is triggered and only the net40 build is tested. See https://ci.appveyor.com/project/Pyropace/closedxml

  6. Support Staff 6 Posted by Ilya Finkelshte... on 23 Aug, 2017 05:34 AM

    Ilya Finkelshteyn's Avatar

    Francois, thank you for interesting scenario :) Please watch this issue. For now temporary workaround (did not test, but I believe should work) is to use different file names for tests assemblies.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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