-
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
Getting test output that breaks Visual Studio Devops Build pipeline (MSTest.Adapter v2.2.3) #799
Comments
Hi @sumitkm, Are you getting that message after cleaning your solution? |
@Haplois Unfortunately yes. I have cleaned the solution, closed Visual Studio, remove all Please note this is not like old executor bugs that happened due to missing DLL... there are no missing DLL warnings. It is clearly saying it is missing a |
Update: I tried to repro it with a standalone solution and project, I got the same issue when I upgraded from 2.1.2 to to 2.2.3. But after I closed VS, deleted |
Yes, thank you for the clarification. Could you run your tests from vstest.console.exe C:\Path\To\My\Test\Project\bin\x64\Debug\net48\Tests.Integration.dll --Diag:diag.log And please share the resulting |
Hey @Haplois many thanks for the command line syntax. I have the files but these contain a bucket load of internal API details that I cannot share publicly. Here's the bit from
Here's the bit from
I am happy to share the full files privately you can use [email protected] address to send me a location to upload the logs. |
Digging further, I can see out of the three Test projects I have, 2 are throwing the exception and 1 is not. So it narrows it down to an environment-ish issue. Also I have updated the I'll keep digging in an attempt to reproduce it in a shareable project. |
Thank you, I wasn't able to reproduce this; please share with the repro if you are able to create one. |
Quick update. I upgraded our project to latest Test Framework and tried out the latest adapter got stuck again. This time the behaviour is slightly different. It is a mix of the 2.2.1 issues and the above issue. I am back to 2 set of Unit Test projects being completely ignored by the test framework. It shows the Tree in Text Explorer but doesn't run them. After carefully installing/uninstalling various combinations of MSTest's Nuget packages. I find that the following combination is able to discover and run all my tests.
As soon as I upgrade to I am going to keep trying to isolate this issue and find a reproable Project that I can share here. |
@sumitkm, can you try with our latest preview (v2.2.4-preview-20210331-02)? If the issue persists, let's schedule a call on or after Tuesday. I'll send an email to you. |
Thanks again for all your support @Haplois . I tried updating all the MSTest dependencies to the latest from the Test feed. but no dice. As mentioned earlier only one of my three test projects run without the following error (even with new the
If I run each test project separately, all tests run. However if I click Cheers. |
I experienced the same issue and for now reverted to v2.1.2 of both |
@sumitkm, @odalet could you test it with our latest preview bits? If the issue still persists, is it possible to share a quick repro with us? |
@Haplois Well, I don't seem to reproduce the Using:
Test Execution:
|
@odalet, can you share a quick repro? (If not can you run your tests with --diag and share the resulting *.log files with us? |
I'm working on setting up a repro repository. Will post this here with details! |
@odalet thanks! If it's a different issue you're welcome to create a new issue for better visibility. |
So here is some bad news :( Concerning the issue above, I did create a new issue (#887), but the thing is I was too quick at saying I didn't reproduce the issu any more; I was simply not looking at the right repository... . So, I did apply version 2.2.5-preview-20210605-01 to test projects in the correct repository and:
I also upgraded |
I managed to narrow down the issue to a rather simple repro (note that you'll need to add Mongo2go: using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Mongo2Go;
namespace MSTestTest
{
[TestClass, ExcludeFromCodeCoverage]
public class UnitTests
{
private static MongoDbRunner runner;
[ClassInitialize, SuppressMessage("Style", "IDE0060:Remove unused parameter", Justification = "Required by VSTest conventions")]
public static void Setup(TestContext context)
{
//Console.Out.WriteLine("Before Start");
runner = MongoDbRunner.Start();
//Console.Out.WriteLine("After Start");
}
[ClassCleanup]
public static void Teardown()
{
//Console.Out.WriteLine("Before Dispose");
runner.Dispose();
//Console.Out.WriteLine("After Dispose");
}
[TestMethod]
public void Fake_test() => Assert.IsTrue(true);
}
} This test reproduces the error that prevent later tests to execute (in Visual Studio).
Well all this to say that I think there is some buggy behavior both in the Test initialization and cleanup methods with respect to console output maybe when some of this comes from out/err files redirected from an external process... Hope this helps |
@sumitkm thanks! And well, I couldn't have suspected you were also using mongo2go... I think (hope) the issue is not specific to mongo2go but rather arises when a subprocess is created with its console redirected. |
We use I am going to try that |
Haa haa... @odalet you wonderful hacker 😆 It works! Here is our Assembly level initialization using Microsoft.VisualStudio.TestTools.UnitTesting;
@Haplois Here is the exception I get if we don't use the Also I am using the release version
|
Well, to be honest, it was sheer luck that lead me to this workaround: I was merely trying to dump some information while investigating with my @Haplois I think the parts to investigate are what happens during initialization and cleanup steps relating to console redirections. Mongo2go may be specifically at fault (although it didn't bother MSTest v2.1), but I suspect we'd end up with the same errors if we were to use any code that spawns a process and monitors its output. I know from experience that Windows Console redirection is a b*tch to get right so I had a look at how this behaves on Linux: |
@odalet, Thanks for all the investigation, hacking and narrowing down! I'll look into this as well and try to see if we need fix this on our side. |
@Haplois I've just cloned the testfx repo, walked down the call stack of my exception, and I think I came up with a fix: I noticed that in However (I took the liberty to examine the implementation of So I replaced the calls to Here is the proposed code for private void LogCleanupResult(ITestExecutionRecorder testExecutionRecorder, RunCleanupResult result)
{
Debug.Assert(testExecutionRecorder != null, "Logger should not be null");
if (!string.IsNullOrWhiteSpace(result.StandardOut))
{
testExecutionRecorder.SendMessage(TestMessageLevel.Informational, result.StandardOut);
}
if (!string.IsNullOrWhiteSpace(result.DebugTrace))
{
testExecutionRecorder.SendMessage(TestMessageLevel.Informational, result.DebugTrace);
}
if (!string.IsNullOrWhiteSpace(result.StandardError))
{
testExecutionRecorder.SendMessage(
MSTestSettings.CurrentSettings.TreatClassAndAssemblyCleanupWarningsAsErrors ? TestMessageLevel.Error : TestMessageLevel.Warning,
result.StandardError);
}
if (result.Warnings != null)
{
foreach (string warning in result.Warnings)
{
if (!string.IsNullOrWhiteSpace(warning))
{
testExecutionRecorder.SendMessage(
MSTestSettings.CurrentSettings.TreatClassAndAssemblyCleanupWarningsAsErrors ? TestMessageLevel.Error : TestMessageLevel.Warning,
warning);
}
}
}
} What's left:
Tell me what you think! |
Hi @odalet - thank you for all your work here. Since you did all the investigation, if you open the PR; I can guide you on the tests. |
…space" instead of "null or empty"
…stead of "null or empty" (#892) Co-authored-by: Olivier DALET <[email protected]>
commit f7de2d4 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Wed Jul 21 14:26:59 2021 +0200 Update dependencies from https://github.com/microsoft/vstest build 20210719-01 (microsoft#925) Microsoft.NET.Test.Sdk From Version 17.0.0-preview-20210715-01 -> To Version 17.0.0-preview-20210719-01 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit e8fa622 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Wed Jul 21 14:26:32 2021 +0200 [main] Update dependencies from dotnet/arcade (microsoft#924) * Update dependencies from https://github.com/dotnet/arcade build 20210716.1 Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21365.11 -> To Version 6.0.0-beta.21366.1 * Update dependencies from https://github.com/dotnet/arcade build 20210719.3 Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21365.11 -> To Version 6.0.0-beta.21369.3 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit f31b23c Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Sat Jul 17 01:25:45 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210715.11 (microsoft#923) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21364.3 -> To Version 6.0.0-beta.21365.11 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 509d026 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Sat Jul 17 01:25:22 2021 +0200 Update dependencies from https://github.com/microsoft/vstest build 20210715-01 (microsoft#922) Microsoft.NET.Test.Sdk From Version 17.0.0-preview-20210714-01 -> To Version 17.0.0-preview-20210715-01 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 90112ff Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Thu Jul 15 14:13:27 2021 +0000 Update dependencies from https://github.com/dotnet/arcade build 20210714.3 (microsoft#921) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21363.2 -> To Version 6.0.0-beta.21364.3 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit a0882c1 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Thu Jul 15 14:13:16 2021 +0000 Update dependencies from https://github.com/microsoft/vstest build 20210714-01 (microsoft#920) Microsoft.NET.Test.Sdk From Version 17.0.0-preview-20210712-03 -> To Version 17.0.0-preview-20210714-01 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit b0be7a1 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Wed Jul 14 16:42:34 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210713.2 (microsoft#918) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21357.3 -> To Version 6.0.0-beta.21363.2 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 797c799 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Tue Jul 13 20:35:03 2021 +0200 Update dependencies from https://github.com/microsoft/vstest build 20210712-03 (microsoft#916) Microsoft.NET.Test.Sdk From Version 17.0.0-preview-20210710-01 -> To Version 17.0.0-preview-20210712-03 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 5a432c9 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Sun Jul 11 13:08:17 2021 +0000 Update dependencies from https://github.com/microsoft/vstest build 20210710-01 (microsoft#914) [main] Update dependencies from microsoft/vstest commit 4382f3a Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Sat Jul 10 01:58:40 2021 +0200 Update dependencies from https://github.com/microsoft/vstest build 20210708-01 (microsoft#911) Microsoft.NET.Test.Sdk From Version 17.0.0-preview-20210705-01 -> To Version 17.0.0-preview-20210708-01 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit ef4c809 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Sat Jul 10 01:58:16 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210707.3 (microsoft#912) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21355.2 -> To Version 6.0.0-beta.21357.3 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 3ce8458 Author: jvrooyen <[email protected]> Date: Thu Jul 8 14:34:49 2021 +0200 Fix DateTime looses significant digits in DynamicData (microsoft#875) (microsoft#907) commit 86845cf Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Tue Jul 6 15:00:11 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210705.2 (microsoft#904) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21351.2 -> To Version 6.0.0-beta.21355.2 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit c6ba660 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Tue Jul 6 12:38:29 2021 +0000 Update dependencies from https://github.com/microsoft/vstest build 20210629-04 (microsoft#898) Microsoft.NET.Test.Sdk From Version 17.0.0-preview-20210629-03 -> To Version 17.0.0-preview-20210629-04 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 8babc08 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Mon Jul 5 08:09:12 2021 +0000 [main] Update dependencies from dotnet/arcade (microsoft#900) * Update dependencies from https://github.com/dotnet/arcade build 20210630.2 Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21329.8 -> To Version 6.0.0-beta.21330.2 * Update dependencies from https://github.com/dotnet/arcade build 20210701.2 Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21329.8 -> To Version 6.0.0-beta.21351.2 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit bb2161a Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Wed Jun 30 15:28:14 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210629.8 (microsoft#899) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21328.2 -> To Version 6.0.0-beta.21329.8 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit f017fa2 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Tue Jun 29 19:57:50 2021 +0000 Update dependencies from https://github.com/dotnet/arcade build 20210628.2 (microsoft#897) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21324.3 -> To Version 6.0.0-beta.21328.2 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 463f5b6 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Tue Jun 29 19:59:55 2021 +0200 Update dependencies from https://github.com/microsoft/vstest build 20210629-03 (microsoft#896) Microsoft.NET.Test.Sdk From Version 17.0.0-preview-20210628-03 -> To Version 17.0.0-preview-20210629-03 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 17fee3c Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Mon Jun 28 14:40:45 2021 +0200 Update dependencies from https://github.com/microsoft/vstest build 20210628-03 (microsoft#894) Microsoft.NET.Test.Sdk From Version 17.0.0-preview-20210627-02 -> To Version 17.0.0-preview-20210628-03 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 1fc6719 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Mon Jun 28 11:49:59 2021 +0200 Update dependencies from https://github.com/microsoft/vstest build 20210627-02 (microsoft#893) Microsoft.NET.Test.Sdk From Version 17.0.0-preview-20210624-09 -> To Version 17.0.0-preview-20210627-02 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 50c322c Author: odalet <[email protected]> Date: Sun Jun 27 00:38:02 2021 +0200 Fixes microsoft#799 by testing logged messages against "null or whitespace" instead of "null or empty" (microsoft#892) Co-authored-by: Olivier DALET <[email protected]> commit 2d0f311 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Fri Jun 25 12:46:10 2021 +0000 Update dependencies from https://github.com/dotnet/arcade build 20210624.3 (microsoft#891) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21323.1 -> To Version 6.0.0-beta.21324.3 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 10e47b5 Author: Medeni Baykal <[email protected]> Date: Fri Jun 25 13:19:36 2021 +0200 Added missing framework references for WinUI (microsoft#890) * Added missing framework references * Updated license headers on PowerShell files * Included a script to install required Windows SDK commit aad795f Author: Morten Nielsen <[email protected]> Date: Thu Jun 24 14:12:31 2021 -0700 Upgraded winui to 0.8.0 (microsoft#888) The dispatcher has moved to a new namespace commit 6e699eb Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Thu Jun 24 14:54:46 2021 +0000 Update dependencies from https://github.com/microsoft/vstest build 20210624-09 (microsoft#885) Microsoft.NET.Test.Sdk From Version 17.0.0-preview-20210623-08 -> To Version 17.0.0-preview-20210624-09 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit a9d1e1c Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Thu Jun 24 16:43:41 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210623.1 (microsoft#886) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21321.2 -> To Version 6.0.0-beta.21323.1 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 6a09407 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Wed Jun 23 12:54:35 2021 +0000 Update dependencies from https://github.com/dotnet/arcade build 20210621.2 (microsoft#884) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21321.1 -> To Version 6.0.0-beta.21321.2 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit ad61572 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Wed Jun 23 12:51:42 2021 +0000 Update dependencies from https://github.com/microsoft/vstest build 20210623-08 (microsoft#883) Microsoft.NET.Test.Sdk From Version 17.0.0-preview-20210520-02 -> To Version 17.0.0-preview-20210623-08 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 5fa4866 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Tue Jun 22 22:32:54 2021 +0000 Update dependencies from https://github.com/dotnet/arcade build 20210621.1 (microsoft#882) [main] Update dependencies from dotnet/arcade commit b5ecab6 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Sun Jun 20 22:52:19 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210619.2 (microsoft#881) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21318.2 -> To Version 6.0.0-beta.21319.2 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit a392596 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Sat Jun 19 15:43:21 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210618.2 (microsoft#880) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21317.1 -> To Version 6.0.0-beta.21318.2 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 53a7597 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Fri Jun 18 15:10:42 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210617.1 (microsoft#879) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21316.3 -> To Version 6.0.0-beta.21317.1 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit fe6babd Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Thu Jun 17 22:58:33 2021 +0000 Update dependencies from https://github.com/dotnet/arcade build 20210616.3 (microsoft#878) [main] Update dependencies from dotnet/arcade commit 96ad498 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Tue Jun 15 14:52:47 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210614.1 (microsoft#876) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21311.3 -> To Version 6.0.0-beta.21314.1 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit e2fbeab Author: Sanan Yuzbashiyev <[email protected]> Date: Mon Jun 14 01:11:51 2021 +0200 Adding contribution note (microsoft#873) Clarified contribution guidelines, and added extra notices. Co-authored-by: Medeni Baykal <[email protected]> commit 807d6c9 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Mon Jun 14 01:01:07 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210611.3 (microsoft#874) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21304.1 -> To Version 6.0.0-beta.21311.3 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Medeni Baykal <[email protected]> commit 59cd5ae Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Sat Jun 5 22:35:16 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210604.1 (microsoft#865) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21303.2 -> To Version 6.0.0-beta.21304.1 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 25e984e Author: Medeni Baykal <[email protected]> Date: Sat Jun 5 03:12:39 2021 +0200 Fixed a bug in `ITestDataSource` data deserialization (microsoft#864) - Fixed a bug in `ITestDataSource` data deserialization when trying to deserialize a type outside of current assembly. This should fix the last item in microsoft#844. - Added extra tests cases for `ITestDataSource`, we're now testing almost all cases we can think of. commit 5d4bb67 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Fri Jun 4 15:20:45 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210603.2 (microsoft#862) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21302.1 -> To Version 6.0.0-beta.21303.2 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 640372c Author: Medeni Baykal <[email protected]> Date: Fri Jun 4 02:44:22 2021 +0200 Fixed DataSource deserialization. (microsoft#859) commit f6731ef Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Thu Jun 3 14:59:38 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210602.1 (microsoft#858) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21281.1 -> To Version 6.0.0-beta.21302.1 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> commit 39a52b3 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Tue Jun 1 14:29:39 2021 +0000 Update dependencies from https://github.com/dotnet/arcade build 20210531.1 (microsoft#853) [main] Update dependencies from dotnet/arcade commit 57d2d00 Author: Medeni Baykal <[email protected]> Date: Mon May 31 13:04:02 2021 +0200 Fixed a serialization issue with DataRows. (microsoft#847) commit 1c62432 Author: Medeni Baykal <[email protected]> Date: Mon May 31 09:04:37 2021 +0200 Replaced license file with an expression. (microsoft#846) - Replaced LICENSE files in NuGet packages with a license expression, and added a licenseUrl. commit eaa3242 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Sun May 30 12:56:40 2021 +0000 Update dependencies from https://github.com/dotnet/arcade build 20210528.1 (microsoft#845) [main] Update dependencies from dotnet/arcade commit 93a72f5 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Fri May 28 17:56:15 2021 +0000 Update dependencies from https://github.com/dotnet/arcade build 20210527.1 (microsoft#841) [main] Update dependencies from dotnet/arcade commit 6b705ed Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Thu May 27 15:48:51 2021 +0200 Update dependencies from https://github.com/dotnet/arcade build 20210526.5 (microsoft#840) Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.SwaggerGenerator.MSBuild , Microsoft.DotNet.SignTool , Microsoft.DotNet.Helix.Sdk From Version 6.0.0-beta.21275.5 -> To Version 6.0.0-beta.21276.5 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Medeni Baykal <[email protected]> commit 365f05d Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Wed May 26 12:53:09 2021 +0000 Update dependencies from https://github.com/dotnet/arcade build 20210525.5 (microsoft#836) [main] Update dependencies from dotnet/arcade commit e18a292 Author: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Tue May 25 19:46:44 2021 +0000 Update dependencies from https://github.com/dotnet/arcade build 20210524.6 (microsoft#835) [main] Update dependencies from dotnet/arcade commit 43f5000 Author: Medeni Baykal <[email protected]> Date: Tue May 25 19:29:45 2021 +0200 Rename Nuget.config to NuGet.config (microsoft#833) commit b5c0790 Author: Medeni Baykal <[email protected]> Date: Mon May 24 12:09:42 2021 +0200 Arcade files added (microsoft#832) * Added Arcade files. commit 9e62a25 Author: Jakub Jareš <[email protected]> Date: Thu May 20 11:07:27 2021 +0200 Rename to main (microsoft#828) * Rename to main * main file commit 19acefa Author: Medeni Baykal <[email protected]> Date: Wed May 19 10:22:28 2021 +0200 Updated MicrosoftNetTestSdkVersion to 16.10.0-release-20210429-01 (microsoft#831) commit fe3ba4f Author: Medeni Baykal <[email protected]> Date: Tue May 18 02:57:26 2021 +0200 Refactored projects to use PackageReference. (microsoft#830) commit 0b95a26 Author: Medeni Baykal <[email protected]> Date: Thu May 13 09:20:32 2021 +0200 Bumped `Newtonsoft.Json` version on WinUI. (microsoft#827) commit f68fd34 Author: Medeni Baykal <[email protected]> Date: Thu May 13 09:20:09 2021 +0200 Reverting an unintended breaking-change. (microsoft#826) Reverting an unintended breaking change in reflection. Thank you, @azchohfi, for reporting it; this makes microsoft#824 unnecessary. commit 30aaca1 Author: Alexandre Zollinger Chohfi <[email protected]> Date: Wed Apr 28 15:22:54 2021 -0700 Small fix for full file path on WinUI (microsoft#823) commit 2e35bad Author: Alexandre Zollinger Chohfi <[email protected]> Date: Wed Apr 28 12:43:44 2021 -0700 Added WinUITestSourceHost (microsoft#822) Small fix that was preventing tests from running from VS TestExplorer. commit faf5270 Author: Medeni Baykal <[email protected]> Date: Thu Apr 22 01:04:11 2021 +0200 Moved ITestDataSource discovery to test discovery. (microsoft#794) * Moved `ITestDataSource` discovery to test discovery. * Hierarchies added into `TestCase`. * Id generation moved to AdapterUtilities package. commit 94c3110 Author: Pavel Horak <[email protected]> Date: Mon Apr 19 10:06:54 2021 +0200 Open Source Code of Conduct update Update (microsoft#816) commit 179c864 Author: Jakub Jareš <[email protected]> Date: Fri Apr 16 10:44:44 2021 +0200 Handle possible null ref in error handler (microsoft#819) I have a dump that throws access violation exception in native code and the test run fails with: `An exception occurred while invoking executor 'executor://mstestadapter/v2': Object reference not set to an instance of an object.` I looked through the code and the only way I can get this result is when ex would be null in the handler. Otherwise it fails with different error, either from the asserts in the `StackTraceHelper` methods or in upstream error handlers. commit e0289e8 Author: Test Platform Bot <[email protected]> Date: Wed Apr 14 10:27:27 2021 +0200 Localized file check-in by OneLocBuild Task (microsoft#818) commit 3956a4d Author: csigs <[email protected]> Date: Tue Apr 13 10:03:38 2021 -0700 LEGO: Pull request from lego/hb_63a2d317-b544-477f-9d48-4250bdd255f0_20210413165102761 to master (microsoft#817) LEGO: Pull request from lego/hb_63a2d317-b544-477f-9d48-4250bdd255f0_20210413165102761 to master with localized lcls commit f7b5a40 Author: Test Platform Bot <[email protected]> Date: Tue Apr 13 09:03:29 2021 +0200 Localized file check-in by OneLocBuild Task (microsoft#815) commit 072c5ad Author: csigs <[email protected]> Date: Mon Apr 12 09:54:48 2021 -0700 LEGO: Pull request from lego/hb_63a2d317-b544-477f-9d48-4250bdd255f0_20210412164646888 to master (microsoft#814) LEGO: Pull request from lego/hb_63a2d317-b544-477f-9d48-4250bdd255f0_20210412164646888 to master with localized lcls commit d5ee30b Author: Alexandre Zollinger Chohfi <[email protected]> Date: Mon Apr 12 01:58:24 2021 -0700 Added WinUI TestAdapter. (microsoft#813) commit 4c980dd Author: Maximilian Chaplin <[email protected]> Date: Thu Apr 8 11:59:49 2021 +0200 Code cleanup with analysers. (microsoft#807) Doing some code cleanup with some static analyzers. IDE0016 Null check can be simplified IDE0018 Variable declaration can be inlined commit 348e322 Author: Test Platform Bot <[email protected]> Date: Wed Apr 7 15:23:29 2021 +0200 Localized file check-in by OneLocBuild Task (microsoft#811) commit f579469 Author: Maximilian Chaplin <[email protected]> Date: Tue Apr 6 11:34:04 2021 +0200 Added AreEqual and AreNotEqual tests (microsoft#809)
Description
I was holding back on v2.2.1 and using v2.1.2 because of issue #789
When I upgraded to v2.2.2 and then to v2.2.3 I find the tests are running inside Visual Studio and the breaking behavior in 2.2.1 is resolved; however after running all the tests In the Test Output window I notice the following message
This doesn't cause any issues in Visual studio but when they are executed in Visual Studio DevOps pipeline, the mention of the word
exception
causes the Pipeline task to fail, even though all tests have passed.I have rolled back to 2.1.2 multiple times, and after reverting, the above error message goes away.
Steps to reproduce
Expected behavior
All tests should pass without any messages mentioning any
exception
, e.g. when running same tests withv2.1.2
give the following message at end of runActual behavior
I get the following message
I could be missing some Run parameters, but I couldn't figure out which one exactly, quickly. Any pointers appreciated.
Environment
Visual Studio 2019 16.9.1
Windows 10 Enterprise x64
Test environment set to x64 explicitly
Nuget Package Style: PackageReference
Package references in the project
The text was updated successfully, but these errors were encountered: