-
Notifications
You must be signed in to change notification settings - Fork 266
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
MSTest 3.0.1 is broken when using deployment items #1493
Comments
.NET framework 6.0.306 as well. |
@avivanoff I have tried to download and run your sample project and I don't have any issue (disabling or not app domains):
@ms6073 Are you also having the same exception or is it something else? You are mentioning .NET 6 and there is a breaking change in .NET 6 related to DeploymentItems (the folder was changed to match what's done for .NET framework). If you have a different exception, please open a separate issue and we will handle it there. |
Sorry @avivanoff I need some coffee, you said it's failing in command line. Will investigate it. |
Alright so the first pass analysis shows that the issue was introduced in |
@Evangelink, 2.2.10 works just fine. |
I confirm that the issue is coming from a change that was introduce in 2.2.7 where some logging mechanism was added without checking for how app domain and assembly resolvers were setup. |
@Evangelink, yes, everything is exactly the same. Our Azure DevOps pipelines have been working fine with 2.2.10, the problems started after upgrading to 3.3.x/17.4.x with absolutely no other changes. |
I have no idea how it's possible... My only guess is that it's an ordering issue and you happen to have the dll touched before... I can reproduce the issue 100% of the time and asked for confirmation from my colleagues and they have the same behaviour using your repro and any version after 2.2.6 (and they also have a success when using 2.2.6 or before). There is an open PR that is fixing the issue but I am now wondering if there is something else going on. |
@Evangelink, would it be possible to provide a NuGet package I can test? |
Hey @avivanoff, you can either download the previews here: or you can add the following feed If you confirm everything is good for you, I will cherry-pick the commit and do a |
@Evangelink, it worked. Please, release 3.0.2 as soon as possible. Thank you. |
@Evangelink, any chance of getting 3.0.2 today? |
@avivanoff Thanks for the confirmation! It's quite unlikely to be done today (I am CET based so it's already end of the day for me) and I have a few days of vacations so most likely it will be done on Tuesday. I will try to make it now but not sure if CI will be on my side :) |
@Evangelink, let’s try. |
Yep, branch created and pipeline started: https://github.com/microsoft/testfx/tree/rel/3.0.2 |
@Evangelink, one unit test failed. Re-run the pipeline? |
For the release, we rely on some internal pipeline (that is still ongoing and is much slower because of many extra steps - validation, signing...). |
Internal build failed, I triggered a new build but it's going to take too much time to complete so sadly it will have to wait. @avivanoff Feel free to keep the 4.0.0 preview on your pipeline waiting for the 3.0.2. |
@Evangelink, no one else can run the build? |
I have this same issue in my Azure Pipelines, using vstest@2, no direct mstest reference. It's coming from MSTestAdapter:
I'm able to make the error stop by using the runsettings disablement of AppDomain, but the tests need the AppDomain, so we need another option. Is it possible to make the vstest@2 task use the new version (or the old version)? This is the task I'm referring to: |
Hi guys, I'm having the same issue on VS 2022 LTSC 17.8.10. I upgraded my VS last night along with installing Python extensions and my test project running on .Net Framework 4.8 started failing with the same issue. First, I tried updating the MSTest Nuget to the latest 3.4.0 and it didn't solve the issue, with/out DisableAppDomain. The only thing that worked for me is downgrading MSTest to 2.2.6 So, is there a valid fix to this? |
Oh, yes. I came across similar issue, and a scramble for finding some help brings me here. I have to downgrade from 3.4 to 2.2.10 to work around the issue; It seems an issue more than one years ago: ,reappears. |
I have created a different issue so we can investigate it, please add comments there. |
Describe the bug
Found while verifying #1437.
Steps To Reproduce
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\Extensions\TestPlatform\vstest.console.exe" TestProject1\bin\Debug\net48\TestProject1.dll /Settings:"TestProject1\local.runsettings" /TestAdapterPath:TestProject1\bin\Debug\net48
Expected behavior
Tests execute.
Actual behavior
Tests do not execute.
Additional context
See attached sample project TestProject1.zip.
Tests output:
The text was updated successfully, but these errors were encountered: