Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nunit Adapter 2.1.1 can't find the dependent assembly and lead to no test found issue #170

Open
liagao opened this issue May 17, 2018 · 6 comments
Labels

Comments

@liagao
Copy link

liagao commented May 17, 2018

I am using VS2017 with this NUnit2 vsix. Some of the test projects are ok to run, but some of them will report the following error. Seems the dependent assembly can not be found, but the error message doesn't mentioned which assembly is missing, can anyone help on this? My Nunit version is 2.6.4.
[4/13/2018 12:23:10 Informational] ------ Run test started ------ [4/13/2018 12:23:11 Informational] NUnit VS Adapter 2.1.1.0 executing tests is started [4/13/2018 12:23:11 Informational] Loading tests from d:\gitsrc\xapplatform\private\xap\XapDataPlatformClient\XapClient.Test\objd\amd64\XapClient.Test.dll [4/13/2018 12:23:11 Informational] TFS Filter detected: LoadedTestCases 99, Filterered Test Cases 99 [4/13/2018 12:23:12 Informational] Run started: d:\gitsrc\xapplatform\private\xap\XapDataPlatformClient\XapClient.Test\objd\amd64\XapClient.Test.dll [4/13/2018 12:23:35 Informational] NUnit VS Adapter 2.1.1.0 executing tests is finished [4/13/2018 12:23:35 Informational] ========== Run test finished: 98 run (0:00:25.0745155) ========== [4/13/2018 12:28:49 Informational] ------ Run test started ------ [4/13/2018 12:28:50 Informational] NUnit VS Adapter 2.1.1.0 executing tests is started [4/13/2018 12:28:51 Informational] Loading tests from d:\gitsrc\xapplatform\private\xap\XapDataPlatform\Xap.PreMergePerformanceGate.Activities.Library\unittest\objd\amd64\Xap.PreMergePerformanceGate.Activities.Library.Tests.dll [4/13/2018 12:28:51 Warning] Dependent Assembly of d:\gitsrc\xapplatform\private\xap\XapDataPlatform\Xap.PreMergePerformanceGate.Activities.Library\unittest\objd\amd64\Xap.PreMergePerformanceGate.Activities.Library.Tests.dll not found. Can be ignored if not a NUnit project. [4/13/2018 12:28:51 Informational] NUnit VS Adapter 2.1.1.0 executing tests is finished [4/13/2018 12:28:51 Warning] No test is available in d:\gitsrc\xap_platform\private\xap\XapDataPlatform\Xap.PreMergePerformanceGate.Activities.Library\unittest\objd\amd64\Xap.PreMergePerformanceGate.Activities.Library.Tests.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.

@OsirisTerje
Copy link
Member

Can you please upload a repro project?
Make it as small as you can, it should compile "as is".

@rprouse
Copy link
Member

rprouse commented May 22, 2018

Looking through the errors, it looks like your tests are targeting AMD64 and your bin folders look like some sort of Cross-Plat framework. What .NET Framework and OS Platform are you targeting. NUnit 2.x only supports the full .NET Framework.

@liagao
Copy link
Author

liagao commented May 23, 2018 via email

@OsirisTerje
Copy link
Member

@liagao No attachments, nor image.
To see what assemblies it tries to load and not finding, enable the fuslogviewer. You only need to look at the resulting log files.

@liagao
Copy link
Author

liagao commented May 23, 2018 via email

@liagao
Copy link
Author

liagao commented May 24, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants