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

Dotnet test hangs when running on a multi-project solution #2025

Closed
livarcocc opened this issue May 24, 2019 · 2 comments
Closed

Dotnet test hangs when running on a multi-project solution #2025

livarcocc opened this issue May 24, 2019 · 2 comments

Comments

@livarcocc
Copy link

From @ruimaciel on Friday, May 24, 2019 11:46:29 AM

I've just upgraded to dotnet 2.2.300 and since the upgrade I've started experiencing a problem running unit tests.

I have multi-project solutions which store all unit tests in a dedicated subfolder, and when I run dotnet test in the solution directory the test project hangs with the following output:

ram@localhost:~/development/Foo$ dotnet test
Test run for /home/ram/development/Foo/tests/Foo.Core.Domain.Tests/bin/Debug/netcoreapp2.2/Foo.Core.Domain.Tests.dll(.NETCoreApp,Version=v2.2)
Microsoft (R) Test Execution Command Line Tool Version 16.1.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Test run for /home/ram/development/Foo/tests/Foo.Core.Application.Tests/bin/Debug/netcoreapp2.2/Foo.Core.Application.Tests.dll(.NETCoreApp,Version=v2.2)
Starting test execution, please wait...
Microsoft (R) Test Execution Command Line Tool Version 16.1.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
Test run for /home/ram/development/Foo/tests/Foo.Core.MassTransitInterface.Tests/bin/Debug/netcoreapp2.2/Foo.Core.MassTransitInterface.Tests.dll(.NETCoreApp,Version=v2.2)
Microsoft (R) Test Execution Command Line Tool Version 16.1.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
Test run in progress.

Oddly enough, if I run dotnet test within the directory of each unit test, everything works as expected.

Here's the output of dotnet --info:

ram@localhost:~$ dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   2.2.300
 Commit:    73efd5bd87

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  18.04
 OS Platform: Linux
 RID:         ubuntu.18.04-x64
 Base Path:   /usr/share/dotnet/sdk/2.2.300/

Host (useful for support):
  Version: 2.2.5
  Commit:  0a3c9209c0

.NET Core SDKs installed:
  2.2.300 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.2.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Copied from original issue: dotnet/cli#11421

@prawalagarwal
Copy link
Member

Your issue looks similar to this. Please follow that thread for updates on fix for this.

@ShreyasRmsft
Copy link
Member

This issue was fixed in pr #2024

It is available in vstest platform version 16.1.1
https://github.com/Microsoft/vstest-docs/blob/master/docs/releases.md#1611

Insertion into dotnet cli/sdk is pending on this pr dotnet/cli#11448

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

No branches or pull requests

3 participants