-
Notifications
You must be signed in to change notification settings - Fork 106
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
An exception occurred while invoking executor: Could not load file or assembly System.Runtime.InteropServices.RuntimeInformation #365
Comments
@gyorgynadaban I am testing this using https://github.com/rprouse/NUnitPlatformTests , and can't repro. Can you check using the same repo, you should see 50 passed tests, 2 skipped and 2 failed. |
@gyorgynadaban is your project multi-targetted? Can you post a copy of your CSPROJ file? NUnit does depend on You've also added a reference to I tried to reproduce and cannot, I created a new project with the following CSPROJ, <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="NUnit" Version="3.7.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.8.0" />
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project> From the command line in the project directory, I run
Also check out, http://www.alteridem.net/2017/05/04/test-net-core-nunit-vs2017/ |
My mistake, I switched the above from I'm not sure why this is working in the test solution, we will need to look into it. Workaround for now is to switch to |
It looks like targeting We could add this as a NuGet dependency to fix. |
* Run acceptance tests in parallel * Use MSTest 1.3.0-beta2 * Make execution scope class level * Restrcture translationlayer tests * Fix build failures * Pass target platform in runsettings * revert experiment changes * Read deps file in readonly mode * Fix DotnetTestHostManagerTests unit tests * Pass Framework explicitly * Remove logfile from TL * Update nunit adapter version to fix nunit/nunit3-vs-adapter#365 * Update error message for acceptance test * Disable in assembly parallel * change targetframes order * Fix ubuntu build failure by adding System.Reflection reference * Fix build failure after merge with master * Fix flaky test
Target framework: netcoreapp1.0
NUnit 3.7.1
NUnit3TestAdapter 3.8.0
New test library project with 2 simple test classes, attempting to run "dotnet test" from command line yields exception:
The text was updated successfully, but these errors were encountered: