Hack to name unit tests?

Leandro Lucarella llucax at gmail.com
Wed Nov 28 15:38:55 PST 2007


Dan, el 28 de noviembre a las 18:20 me escribiste:
> Robert Fraser Wrote:
> 
> > I'm creating a Flectioned-based way to run unit tests individually 
> > (it'll be hooked into a front-end, so you can run test suites, repeat 
> > only failed tests after a code change, etc.)
> 
> I would have recommended you approach Walter and his team (whomever they may be nowadays) with the idea.
>  
> > Ideally, it'd be as easy for the user as something like:
> > 
> > unittest
> > {
> >     assert(":testName:");
> >     // Rest of test goes here...
> > }
> 
> I'd like to see:
> 
> unittest testName
> {
>   // rest of text
> }

Maybe something like

unittest "test name"
{
  // rest of the test
}

could be more flexible about naming =)

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
You should've seen her face. It was the exact same look my father gave me when
I told him I wanted to be a ventriloquist.
	-- George Constanza



More information about the Digitalmars-d mailing list