-
Notifications
You must be signed in to change notification settings - Fork 106
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
Incorrect format for TestCaseFilter Error: Invalid Condition - Using = in SetName #711
Comments
Does it work if you replace = with == ? |
No it doesn't work in that case either. Also it appears ! causes issues as well. I also tried > and < those do not appear to present a problem. Using ==
Using !
|
I am still able to get this to reproduce, using the above zip file, with the following versions:
The error is:
I started to make a minimized test case, however the reproduction of the issue became very flaky, sometimes this snippet of code would cause failures: [TestFixture]
public class TestFilterBug
{
[TestCase(TestName = "Invalid = TestNameEquals")]
public void ReservedNames()
{
Assert.True(true);
}
} It seemed like you needed at least 10 characters after the Any idea where to start digging? |
Sorry to double post; but this may be a dupe of #691 |
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 |
It seems this works now, using the latest VS2019, version 16.11.3. I have added the repro to the repro-repo together with the same for #691 and #549 which are similar to this one. All works. See repro solution here: https://github.com/nunit/nunit3-vs-adapter.issues/tree/master/Issue711 Note: This works without Real-Time Test Discovery, but fails when Real-Time Test Discovery is turned on. |
NUnit
NUnit3TestAdapter
Visual Studio
Project under test
Project performing tests
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
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
The text was updated successfully, but these errors were encountered: