Incorrect format for TestCaseFilter Error: Invalid Condition - Using = in SetName
See original GitHub issueNUnit
- 3.12.0
NUnit3TestAdapter
- 3.16.1
Visual Studio
- Professional 2019
- Version 16.4.3
Project under test
- Console Application
- .NET Core 3.1
Project performing tests
- .NET Core 3.1
Application to repo
When using TestCaseData and SetName. Putting an = in the test causes error in Test Output. This also causes all other tests to not be run using Test Explorer in Visual Studio.
Example:
yield return new TestCaseData("Input B").SetName("Unit To Test Input B = itself");
Full Error Message
An exception occurred while invoking executor ‘executor://nunit3testexecutor/’: Incorrect format for TestCaseFilter Error: Invalid Condition ‘FullyQualifiedName=UnitTests.Tests.Unit To Test Input B = itself’. Specify the correct format and try again. Note that the incorrect format can lead to no test getting executed.
This occurs in other framework setups as well but the repo project attached is using the versions listed above.
This looks like it could be similar to #549
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (4 by maintainers)

Top Related StackOverflow Question
same issue, any updates?
I just noticed the same issue with == or != being in SetName(). I could run the individual tests but if they were included in a set of tests to run then no tests were run. Test Adapter 3.17.0 in VS 2019 16.9.5