Why does a unit test attempt with two .NET 4.0 builds under NUnit 2.5.4 fail?

I have an MSBuild script that uses NUnit to run tests in two assemblies. They were on the .NET Framework 3.5 and worked great for a long time.

Command line: (actual paths and names simplified)

nunit-console tests1\bin\debug\tests1.dll tests2\bin\debug\tests2.dll

I updated VS2010 and now made two test builds target .NET 4.0. I also upgraded to NUnit 2.5.4.

I can unit test create one assembly with the following:

nunit-console tests1\bin\debug\tests1.dll /framework=4.0.30319

It works fine with test1.dll or tests2.dll.

If I try to specify both as before, it now fails.

nunit-console tests1\bin\debug\tests1.dll tests2\bin\debug\tests2.dll /framework=4.0.30319

Error:

Could not load file or assembly 'tests2' or one of its dependencies. The system cannot find the file specified.

I looked in fuslogvw and it shows that tests2 were looking in the folders tests1 \ bin \ debug and nunit-console. It never searches for test2 \ bin \ debug, even if it is specified on the command line.

What's up with that?

+3
1

, NUnit.

: NUnit, ? , .

+1

Source: https://habr.com/ru/post/1741596/


All Articles