dotCover does not accept NUnit --test-name-format parameter

Answered

We run TeamCity with dotCover for our solution. Recently we wanted to change the name format of our unit tests. In NUnit 3, there is command line parameter for that: --test-name-format. 

When I do locally

nunit3-console.exe "%SlnFile%" --test-name-format={m}{a}_{i}

It works fine.

But when we add dotCover in the loop, it does not accept the braces in parameters and we get "Unhandled exception: Input string was not in the correct format"

This parameter works perfectly if we don't mention braces but it's the only way we have to specify format arguments, according to NUnit doc: https://github.com/nunit/docs/wiki/Generation-of-Test-Names-Spec

Is there any way to avoid getting this exception, and make the NUnit parameter work?

1 comment

Hello Martin,

sorry for a late response.

This is indeed a bug. I've created a corresponding issue https://youtrack.jetbrains.com/issue/DCVR-8761

0

Please sign in to leave a comment.