Teamcity not DLL's for some NUnit Test projects

前端 未结 2 1952
生来不讨喜
生来不讨喜 2021-01-01 23:58

I get this error when running my Moq tests through Teamcity 5

Test(s) failed. System.IO.FileNotFoundException : Could not load file or assembly \'

相关标签:
2条回答
  • 2021-01-02 00:08

    I had a similar issue, but found that I had different version's of Moq between my 2 Test projects.

    The issue that I had was that the correct version was not available.

    Just do

    Update-Package Moq
    

    From the Package Manager command line

    0 讨论(0)
  • 2021-01-02 00:14

    So the issue was to do with the Test DLL search path under the nunit settings

    It was:

    ..\Tests\**\*Test*.dll

    But is now:

    ..\Tests\*\bin\Debug\*Test*.dll

    And things work nicely

    UPDATE

    http://confluence.jetbrains.com/display/TCD8/NUnit

    You can use this pattern

    **\*.dll

    as long as you add this pattern in the "Do not run tests from" field

    **\obj\**\*.dll

    0 讨论(0)
提交回复
热议问题