-
Notifications
You must be signed in to change notification settings - Fork 105
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
Invalid characters in test name breaks test runner #549
Comments
Thanks, looks like a problem parsing the filters that are sent from the test window to the adapter. Does it happen if the test name is more than just |
Yes it does. (We first encountered it in a test whose name contained a URL with a query string.) The error message is different but I'm confident that it's the same bug. |
Excellent, thanks. That will increase the priority then, especially since |
we are also seeing this problem with 3.10.0.21 with # in the test name and the tests being source from a paramaterised set eg: [Test, TestCaseSource(typeof(AdtPatientTestDataFactory), "TestCases")] |
I am having the same type of problems. I am from Norway, and in our project we use Norwegian test names. This means that the names may contain æøå and ÆØÅ, which breaks the adapter. We have over a thousand tests, and I don't want to start renaming all of them because of this, so currently I am using the console test runner instead. Edit: I might have been wrong about æøå breaking the test runner. It was more likely some special characters in the test input data (an "&" for instance). |
I have the same problem - just me and non of my colleges. |
@laura-campbell @Macht59 @benjamin-hodgson @LangdalP @aboldock After adapter AND NUnit upgrade: All tested with VS 2019 , 16.3.4 |
versions: NUnit 3.0 and NUnit Adapter 3.10.0.21
Visual Studio Professional version 15.8.5
.NET framework is 4.6.1
When a test with a custom name has invalid characters in that name (in this case, '&'), the nunit adapter throws an error and the tests are removed from the window
Only appears to happen when you select a group of tests
Doesn't appear to happen on other machines
repro: https://github.com/laura-campbell/nunit3bug
test is visible after building the solution
chose to run selected tests on a group of tests
test is not run and disappears from the window
Error message:
The text was updated successfully, but these errors were encountered: