Re: Another Question of Naming

"Charlie Poole" <[email protected]> Tue, 9 Sep 2008 05:57:40 -0700
Newsgroups gmane.comp.windows.dotnet.nunit.devel
Message-ID <001801c9127b$a4bd8150$6401a8c0@ferrari>
This is a multi-part message in MIME format.

--===============0887158627==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0019_01C91240.F85EA950"

This is a multi-part message in MIME format.

------=_NextPart_000_0019_01C91240.F85EA950
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Those are possibilities...
 
Charlie


  _____  

From: cliff vaughn [mailto:[email protected]] 
Sent: Monday, September 08, 2008 9:24 PM
To: Charlie Poole
Cc: [email protected]; [email protected]
Subject: Re: [nunit-developer] Another Question of Naming


What about ValueSource or ValuesSource?


On Mon, Sep 8, 2008 at 6:57 PM, Charlie Poole <[email protected]> wrote:


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
<http://moblin-contest.org/redirect.php?banner_id=100&url=/> &url=/
_______________________________________________
nunit-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-developer





-- 
thanks 

cliff



------=_NextPart_000_0019_01C91240.F85EA950
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16705" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D890175712-09092008><FONT face=3DArial color=3D#0000ff =
size=3D2>Those=20
are possibilities...</FONT></SPAN></DIV>
<DIV><SPAN class=3D890175712-09092008><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D890175712-09092008><FONT face=3DArial color=3D#0000ff =

size=3D2>Charlie</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
  <HR tabIndex=3D-1>
  <FONT face=3DTahoma size=3D2><B>From:</B> cliff vaughn=20
  [mailto:[email protected]] <BR><B>Sent:</B> Monday, September =
08, 2008=20
  9:24 PM<BR><B>To:</B> Charlie Poole<BR><B>Cc:</B>=20
  [email protected];=20
  [email protected]<BR><B>Subject:</B> Re: [nunit-developer] =
Another=20
  Question of Naming<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV dir=3Dltr>What about ValueSource or ValuesSource?<BR><BR>
  <DIV class=3Dgmail_quote>On Mon, Sep 8, 2008 at 6:57 PM, Charlie Poole =
<SPAN=20
  dir=3Dltr>&lt;<A=20
  href=3D"mailto:[email protected]">[email protected]</A>&gt;</SPAN> =
wrote:<BR>
  <BLOCKQUOTE class=3Dgmail_quote=20
  style=3D"PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: =
rgb(204,204,204) 1px solid">Hi=20
    All,<BR><BR>I'm still not happy with one of the attribute names we=20
    are<BR>using for parameterized tests, so I'm asking for =
ideas,<BR>opinions=20
    and suggestions.<BR><BR>Here's what we have now...<BR><BR>You can =
specify=20
    entire test cases together or individual<BR>values for parameters, =
which=20
    NUnit then combines into<BR>test cases using various =
strategies.<BR><BR>If=20
    you go with full test cases, they can either be inline<BR>or =
separately=20
    named and referenced...<BR>&nbsp;TestCase( 1.2, 3.0 ) &nbsp; //=20
    Inline<BR>&nbsp;TestCases( "myCases") &nbsp;// =
Separate<BR><BR>Similarly, if=20
    you go with individual parameters, they<BR>can be inline or=20
    separate...<BR>&nbsp;Values(12, 7, 3) &nbsp; &nbsp; &nbsp; //=20
    Inline<BR>&nbsp;DataSource("myValues") // Separate<BR><BR>We'll be =
adding=20
    others - cases in a spreadsheet, etc. - but<BR>these are the four =
basic=20
    ones.<BR><BR>I'm quite happy with TestCase, TestCases and =
Values.<BR>I find=20
    them quite readable and others have said the<BR>same.<BR><BR>But =
DataSource=20
    strikes me as a bit too generic. It<BR>doesn't tell me that it's a =
set of=20
    single parm values<BR>rather than a test case. It sounds like it =
might=20
    have<BR>something to do with a DB. But for the life of me<BR>I can't =
think=20
    of anything=20
    =
better.<BR><BR>Ideas?<BR><BR>Charlie<BR><BR><BR><BR><BR>-----------------=
--------------------------------------------------------<BR>This=20
    SF.Net email is sponsored by the Moblin Your Move Developer's=20
    challenge<BR>Build the coolest Linux based applications with Moblin =
SDK=20
    &amp; win great prizes<BR>Grand prize is a trip for two to an Open =
Source=20
    event anywhere in the world<BR><A=20
    =
href=3D"http://moblin-contest.org/redirect.php?banner_id=3D100&amp;url=3D=
/"=20
    =
target=3D_blank>http://moblin-contest.org/redirect.php?banner_id=3D100&am=
p;url=3D/</A><BR>_______________________________________________<BR>nunit=
-developer=20
    mailing list<BR><A=20
    =
href=3D"mailto:[email protected]">nunit-developer@lis=
ts.sourceforge.net</A><BR><A=20
    =
href=3D"https://lists.sourceforge.net/lists/listinfo/nunit-developer"=20
    =
target=3D_blank>https://lists.sourceforge.net/lists/listinfo/nunit-develo=
per</A><BR></BLOCKQUOTE></DIV><BR><BR=20
  clear=3Dall><BR>-- <BR>thanks =
<BR><BR>cliff<BR></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0019_01C91240.F85EA950--





--===============0887158627==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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=/
--===============0887158627==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
nunit-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-developer

--===============0887158627==--