-
Notifications
You must be signed in to change notification settings - Fork 152
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
\u001a test case fails on dotnet6 #1349
Comments
Setup a minimal repo https://github.com/indy-singh/nunit_console_runner_issue_1349 |
This is more likely a breaking change by Microsoft between Framework 4.7.2 and NET 6. In my opinion this is not a bug in NUnit. The argument is a dotnet string and should be valid. Consider changing the argument type. |
The string is a valid .NET string, just not valid inside XML CDATA where characters are limited to: This excludes 0x1A. Having said that, They don't seem to run. I see error message: NUnit3TestExecutor discovered 0 of 0 NUnit test cases using Current Discovery mode, Explicit run I don't know if the XML is NUnit specific or dictated by the test specification. |
Presumably there is a suitable escape mechanism we can use when creating the XML in the first place? |
I think the XML is NUnit specific and the framework have special code to handle this - see e.g. https://github.com/nunit/nunit/blob/68d994772d10de54ac960ea8379ee966a3293083/src/NUnitFramework/framework/XmlExtensions.cs#L76 - but apparent we also need some escaping in the engine. |
@indy-singh I think this may have been fixed along with #1469. Can you check against 3.18.2 or the latest 3.18.3 build on our MyGet feed? |
Using @echo off
choco install -y nunit-console-runner --version=3.18.2
choco install -y nunit-extension-vs-project-loader --version=3.9.0
dotnet build
nunit3-console.exe .\bin\Debug\net472\nunit_console_runner_issue_1349.dll
nunit3-console.exe .\bin\Debug\net6.0\nunit_console_runner_issue_1349.dll
pause Output
|
So not fixed in 3.18.2. Can you try this...
|
The above testcase works fine on net472 +
NUnit Console 3.16.3 (Release)
.But it fails on dotnet6.0 +
NUnit Console 3.16.3 (Release)
:-With this exception:-
Cheers,
Indy
The text was updated successfully, but these errors were encountered: