nunit-console /run don't execute parameterized test-cases (with commas in test-case name)
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
NUnit V2 | Status tracked in Trunk | |||||
2.5 |
Fix Released
|
High
|
Charlie Poole | |||
Trunk |
Fix Released
|
High
|
Charlie Poole |
Bug Description
To reproduce:
1. Create test-fixture or test-case with 2 string-type parameters
2. Try to run any test-case from such test-fixture
3. or try to run test-case (with 2 parameters of string type)
This issue is caused by: https:/
Name of parametrized test-case is:
e.g.: Oberon.
and it contains comma in test name
command-line to run this test:
nunit-console-
On same time comma is used to split different test-cases from each other in command.
Comma in test-case name is treated as delimiter between test-cases, and as a result test-case is not executed.
Reproducible on versions 2.5.6-2.5.9 (not reproducible on version lower then 2.5.6)
To fix:
use semicolon ( ; ) as delimiter between test-cases for command line /run
File: NUnit-2.
I have fixed that locally, updating from
foreach (string name in namesToAdd.
to
foreach (string name in namesToAdd.
And running it like:
nunit-console-
- is executing 2 test-cases (which is exactly what I tried to do :) )
Changed in nunitv2: | |
assignee: | nobody → Charlie Poole (charlie.poole) |
importance: | Medium → High |
Changed in nunitv2: | |
milestone: | none → 2.5.10 |
summary: |
- nunit-console /run don't execute parametrized test-cases (with commas in - test-case name) + nunit-console /run don't execute parameterized test-cases (with commas + in test-case name) |
Good catch!
On Thu, Feb 3, 2011 at 5:14 AM, Pavlo Basiuk <email address hidden> wrote: /code.launchpad .net/~u- launchpad- com/nunitv2/ MultiTestNames ATSelenium. TestApps. ATGTests. Lib.CheckoutSan ity("iplay" ,"Firefox" ).FP_AMEX( "Guest" ) x86.exe Oberon. ATSelenium. TestApps. ATGTests. Lib.dll /run=Oberon. ATSelenium. TestApps. ATGTests. Lib.CheckoutSan ity(\"iplay\ ",\"Firefox\ ").FP_AMEX( \"Guest\ ") 5.9.10348\ src\NUnitCore\ interfaces\ Filters\ SimpleNameFilte r.cs: 39 Split(' ,')) Split(' ;')) x86.exe Oberon. ATSelenium. TestApps. ATGTests. Lib.dll /run=Oberon. ATSelenium. TestApps. ATGTests. Lib.CheckoutSan ity(\"iplay\ ",\"Firefox\ ").FP_AMEX( \"Guest\ ");Oberon. ATSelenium. TestApps. ATGTests. Lib.CheckoutSan ity(\"iplay\ ",\"Firefox\ ").FP_VISA( \"Guest\ ") /bugs.launchpad .net/bugs/ 712444
> Public bug reported:
>
> To reproduce:
> 1. Create test-fixture or test-case with 2 string-type parameters
> 2. Try to run any test-case from such test-fixture
> 3. or try to run test-case (with 2 parameters of string type)
>
> This issue is caused by: https:/
> brianlow-
>
> Name of parametrized test-case is:
> e.g.: Oberon.
> and it contains comma in test name
>
> command-line to run this test:
> nunit-console-
>
> On same time comma is used to split different test-cases from each other in command.
> Comma in test-case name is treated as delimiter between test-cases, and as a result test-case is not executed.
>
> Reproducible on versions 2.5.6-2.5.9 (not reproducible on version lower
> then 2.5.6)
>
> To fix:
> use semicolon ( ; ) as delimiter between test-cases for command line /run
> File: NUnit-2.
>
> I have fixed that locally, updating from
> foreach (string name in namesToAdd.
> to
> foreach (string name in namesToAdd.
>
> And running it like:
> nunit-console-
>
> - is executing 2 test-cases (which is exactly what I tried to do :) )
>
> ** Affects: nunitv2
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of NUnit
> Developers, which is subscribed to NUnit V2.
> https:/
>
> Title:
> nunit-console /run don't execute parametrized test-cases (with commas
> in test-case name)
>