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
{{ message }}
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
After running tests using vstest.console.exe in ADO pipeline with some failures rerun throws an exception. After short investigation I found that the reason can be with failed tests, tagged with NUnit Test case attribute, because their final name is in format MyTestName("value1", "value2"). After such test failed it is added to rerun string and on next vstest.console.exe call fails, because braces are counted as special characters and can't be used as a part of filter, even if escaped.
##[error] at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.ArgumentProcessorFactory.<>c__DisplayClass20_0.b__0()
##[error] at System.Lazy`1.CreateValue()
##[error] at System.Lazy`1.LazyInitValue()
##[error] at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.ArgumentProcessorFactory.<>c__DisplayClass20_0.b__0()
##[error] at System.Lazy`1.CreateValue()
##[error] at System.Lazy`1.LazyInitValue()
##[error] at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.ArgumentProcessorFactory.<>c__DisplayClass20_0.b__0()
##[error] at System.Lazy`1.CreateValue()
##[error] at System.Lazy`1.LazyInitValue()
##[error] at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.ArgumentProcessorFactory.<>c__DisplayClass20_0.b__0()
##[error] at System.Lazy`1.CreateValue()
##[error] at System.Lazy`1.LazyInitValue()
##[error] at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.ArgumentProcessorFactory.<>c__DisplayClass20_0.b__0()
##[error] at System.Lazy`1.CreateValue()
##[error] at System.Lazy`1.LazyInitValue()
##[error] at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.ArgumentProcessorFactory.<>c__DisplayClass20_0.b__0()
##[error] at System.Lazy`1.CreateValue()
##[error] at System.Lazy`1.LazyInitValue()
##[error] at Microsoft.VisualStudio.TestPlatform.CommandLine.Processors.ArgumentProcessorFactory.<>c__DisplayClass20_0.b__0()
##[error] at System.Lazy`1.CreateValue()
##[error] at System.Lazy`1.LazyInitValue()
##[error] at Microsoft.VisualStudio.TestPlatform.CommandLine.Executor.GetArgumentProcessors(String[] args, List`1& processors)
##[error] at Microsoft.VisualStudio.TestPlatform.CommandLine.Executor.Execute(String[] args)
##[error] at Microsoft.VisualStudio.TestPlatform.CommandLine.Program.Main(String[] args)
After running tests using vstest.console.exe in ADO pipeline with some failures rerun throws an exception. After short investigation I found that the reason can be with failed tests, tagged with NUnit Test case attribute, because their final name is in format MyTestName("value1", "value2"). After such test failed it is added to rerun string and on next vstest.console.exe call fails, because braces are counted as special characters and can't be used as a part of filter, even if escaped.
Here is the command created on rerun:
Whole error thrown:
Here is ADO YAML code
The text was updated successfully, but these errors were encountered: