-
Notifications
You must be signed in to change notification settings - Fork 254
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
Regression - Upgrading MSTest.TestAdapter
from 2.2.3 to 2.2.6 skips all tests
#955
Comments
MSTest.TestAdapter
from 2.2.3 to 2.2.6 skips all testsMSTest.TestAdapter
from 2.2.3 to 2.2.6 skips all tests
I would have guessed this is because of outdated Microsoft.NET.Test.SDK package, but you are up to date on 16.10 it seems.
There is TreatNoTestAsError test platform setting. microsoft/vstest#2707 |
@majastrz thank you for reporting this issue. It seems like you're only updating See the patch file for the fixes. |
related to #930? |
@danielchalmers, no they are not related. |
Sure, I'll give it a try. If there's such a strong coupling between the packages, why isn't it expressed in NuGet dependencies? |
@majastrz It was designed that way, but we'll probably start releasing a meta package to use in tests, instead of two. |
A meta package would be great. In our scenario dependabot is the one updating dependencies and it isn't smart enough to understand the relationship between the two packages, so that would avoid the problem entirely. |
Description
We upgraded
MSTest.TestAdapter
from 2.2.3 to 2.2.6 and later on realized that our .net tests were completely skipped as a result. The issue appears to be caused by some bug in test discovery. This also caused the exit code fromdotnet test
in this situation to be 0, which was considered a pass by our CI jobs.This is a serious regression that actually caused invalid PRs to be merged into our
main
branch!Separately from the bug fix for this issue, is there a way to force tests to fail even if 0 tests are discovered?
Steps to reproduce
MSTest.TestAdapter
to 2.2.6.dotnet test
from repo root.Expected behavior
Tests are actually discovered and run.
Actual behavior
Tests are skipped and the following output appears from every test project:
Environment
Sample GitHub actions run demonstrating the regression: https://github.com/Azure/bicep/pull/4251/checks?check_run_id=3479570333
Issue appears to be cross-platform (repro'd on windows, mac, and linux)
The text was updated successfully, but these errors were encountered: