Charlie Poole
2008-09-08 23:57:24 UTC
Hi All,
I'm still not happy with one of the attribute names we are
using for parameterized tests, so I'm asking for ideas,
opinions and suggestions.
Here's what we have now...
You can specify entire test cases together or individual
values for parameters, which NUnit then combines into
test cases using various strategies.
If you go with full test cases, they can either be inline
or separately named and referenced...
TestCase( 1.2, 3.0 ) // Inline
TestCases( "myCases") // Separate
Similarly, if you go with individual parameters, they
can be inline or separate...
Values(12, 7, 3) // Inline
DataSource("myValues") // Separate
We'll be adding others - cases in a spreadsheet, etc. - but
these are the four basic ones.
I'm quite happy with TestCase, TestCases and Values.
I find them quite readable and others have said the
same.
But DataSource strikes me as a bit too generic. It
doesn't tell me that it's a set of single parm values
rather than a test case. It sounds like it might have
something to do with a DB. But for the life of me
I can't think of anything better.
Ideas?
Charlie
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
I'm still not happy with one of the attribute names we are
using for parameterized tests, so I'm asking for ideas,
opinions and suggestions.
Here's what we have now...
You can specify entire test cases together or individual
values for parameters, which NUnit then combines into
test cases using various strategies.
If you go with full test cases, they can either be inline
or separately named and referenced...
TestCase( 1.2, 3.0 ) // Inline
TestCases( "myCases") // Separate
Similarly, if you go with individual parameters, they
can be inline or separate...
Values(12, 7, 3) // Inline
DataSource("myValues") // Separate
We'll be adding others - cases in a spreadsheet, etc. - but
these are the four basic ones.
I'm quite happy with TestCase, TestCases and Values.
I find them quite readable and others have said the
same.
But DataSource strikes me as a bit too generic. It
doesn't tell me that it's a set of single parm values
rather than a test case. It sounds like it might have
something to do with a DB. But for the life of me
I can't think of anything better.
Ideas?
Charlie
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/