-
Notifications
You must be signed in to change notification settings - Fork 324
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 does not discovers tests (xunit + mac) #578
Comments
@RassulYunussov can you please share csproj file and log files(which you can get running |
Yes, I can do it. Here they are: Log.host....txt: TpTrace Information: 0 : 677, 1, 2017/03/09, 07:12:51.622, 209059021219, testhost.dll, DefaultEngineInvoker: Monitoring parent process with id: '676' Log.txt: TpTrace Verbose: 0 : 676, 1, 2017/03/09, 07:12:51.187, 208624860020, vstest.console.dll, TestPluginCache: Discovering the extensions using extension path. TpTrace Verbose: 0 : 676, 1, 2017/03/09, 07:12:51.262, 208696333973, vstest.console.dll, TestRunRequest.ExecuteAsync: Wait for the first run request is over. |
I've just created a new project with tests and succeeded to run tests from terminal. But still can't do it for my old one. May be because of additional packages I use in my old project, like OpenIddict? |
Similar issue: #516, adding particular package(Swashbuckle.AspNetCore-1.0.0-rc1) reference test not getting discovered. can you please provide all package reference in |
|
Looks like issue with xunit on MacOS, same project configuration working for on Window but not on Mac OS. Mstest on Mac OS for same packages working fine. |
Sorry, I don't have a Mac to try this on. |
FWIW, I can confirm this bug. I have a build failing on my Mac locally, but builds fine on a Linux based Jenkins box.
Will dig into it a bit deeper once I have some time. |
Same problem here. |
I am running into the same issue. Is there any known workaround for this ? |
Can also confirm, mac can find tests, windows and linux can. Thanks |
@rnowosielski Can you try increase max limit for number of open files per process, Eg: By adding |
@smadala I can confirm that adding OS: OS X 10.11.6 |
/cc @bradwilson @ @onovotny |
Moved issue to xunit repo: xunit/xunit#1199 |
Don't forget to restart your mac if you try to do the |
Interesting thing happening when I add xunit tests to my project.
When I start test using command: dotnet test within Visual Studio Code Terminal - everything goes ok. All tests run.
But when I run dotnet test from a terminal (without Visual Studio Code) I get error message that says that there is no test available.
Steps to reproduce
dotnet test
Expected behavior
(within Visual Studio Code)
Build started, please wait...
Build completed.
Test run for /.../bin/Debug/netcoreapp1.1/SomeProject.Tests.dll(.NETCoreApp,Version=v1.1)
Microsoft (R) Test Execution Command Line Tool Version 15.0.0.0
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
[xUnit.net 00:00:01.2838115] Discovering: SomeProject.Tests
[xUnit.net 00:00:01.4470527] Discovered: SomeProject.Tests
[xUnit.net 00:00:01.5129059] Starting: SomeProject.Tests
[xUnit.net 00:00:01.7132244] Finished: SomeProject.Tests
Total tests: 1. Passed: 1. Failed: 0. Skipped: 0.
Test Run Successful.
Test execution time: 2.7660 Seconds
Actual behavior
(from terminal)
Build started, please wait...
Build completed.
Test run for /.../bin/Debug/netcoreapp1.1/SomeProject.Tests.dll(.NETCoreApp,Version=v1.1)
Microsoft (R) Test Execution Command Line Tool Version 15.0.0.0
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
No test is available in /.../bin/Debug/netcoreapp1.1/SomeProject.Tests.dll. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.
Environment data
dotnet --info
output:.NET Command Line Tools (1.0.1)
Product Information:
Version: 1.0.1
Commit SHA-1 hash: 005db40cd1
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/1.0.1
The text was updated successfully, but these errors were encountered: