You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am seeing an issue with NUnit 3.11 and VS adapter version 3.11 when running the vstest task in an Azure pipeline. While the tests run fine in Visual Studio 2017, when running with a test case filter like "TestCategory=Release & TestCategory!=Chaos & TestCategory!=DevOneOnly" I get the following error in the vstest task, aborting the run:
2018-11-14T19:34:18.1573807Z ##[debug]TestCaseFilter.GetFilteredTestCases : Starting filtering of discovered test cases.
2018-11-14T19:34:18.1778365Z ##[error]TestCaseFilter.FilterTests : Exception during filtering : System.ArgumentException: An item with the same key has already been added.
2018-11-14T19:34:18.1794869Z ##[debug]Processed: ##vso[task.logissue type=error;]TestCaseFilter.FilterTests : Exception during filtering : System.ArgumentException: An item with the same key has already been added.
2018-11-14T19:34:18.1795252Z at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
2018-11-14T19:34:18.1795351Z at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) 2018-11-14T19:34:18.1795538Z at MS.VS.TestService.TestPlatform.v2.TestCaseFilter.GetTestPropertiesInTraitDictionary(TestCase testCase) in D:\V2.0\A1\_work\56\s\Ta\Agent\VS.TestService.TestPlatform.v2\TestCaseFilter.cs:line 139 2018-11-14T19:34:18.1795678Z at MS.VS.TestService.TestPlatform.v2.TestCaseFilter.GetFilteredTestCases(IEnumerable1 testCases) in D:\V2.0\A1_work\56\s\Ta\Agent\VS.TestService.TestPlatform.v2\TestCaseFilter.cs:line 98
2018-11-14T19:34:18.1795802Z at MS.VS.TestService.TestPlatform.v2.TestCaseFilter.FilterTests(IEnumerable`1 testCases) in D:\V2.0\A1_work\56\s\Ta\Agent\VS.TestService.TestPlatform.v2\TestCaseFilter.cs:line 47
I am using the latest version of the agent 2.141.1 on a private host. I originally thought this was an agent issue but downgrading to nunit 3.10.1 fixes the issue for me, so it seems like an nunit framework/adapter issue. Note that this is a .net core 2.1 project.
I am seeing an issue with NUnit 3.11 and VS adapter version 3.11 when running the vstest task in an Azure pipeline. While the tests run fine in Visual Studio 2017, when running with a test case filter like "TestCategory=Release & TestCategory!=Chaos & TestCategory!=DevOneOnly" I get the following error in the vstest task, aborting the run:
This is the configuration of our vs test task:
I am using the latest version of the agent 2.141.1 on a private host. I originally thought this was an agent issue but downgrading to nunit 3.10.1 fixes the issue for me, so it seems like an nunit framework/adapter issue. Note that this is a .net core 2.1 project.
This may be related to #559.
The text was updated successfully, but these errors were encountered: