Need ability to turn off combinatorial
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
[Issue now tracked at https:/
When you have a combinatorial attribute such as the following:
[Test, Combinatorial]
public void MyTest(
[Values(1,2,3)] int x,
[Values(
{
...
}
Sometimes there is an issue with a certain set of values and you need to debug it. Would be nice to just turn off the combinatorial feature (by not having the attribute!), so that this could work for debugging:
[Test, TestCase(3,"A")]
public void MyTest(
[Values(1,2,3)] int x,
[Values(
{
...
}
As it is now, you have to completely redo the signature (and put it back after fixing bug/test) or setup a complex break point, etc....
[Test, TestCase(3,"A")]
public void MyTest(
int x,
string s)
{
...
}
Changed in nunit-3.0: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
tags: | added: framework |
description: | updated |
tags: |
added: github removed: feature framework |
Requiring the presence of the Combinatorial attribute in order to generate cases from the attributes on the parameters would be a significant breaking change since the missing cases would simply disappear from the run, without any failure. I'm re-assigning this bug to NUnit 3.0 with the idea that we should figure out some way to make it easy to resolve the problem, possibly by requiring the attribute, possibly in some other way.
Note that in the Gui, you can simply right-click on the test you want to execute.