TestCase - Inline declaration & strings as function names

12 views
Skip to first unread message

Seth

unread,
Feb 29, 2012, 8:33:03 PM2/29/12
to js-test...@googlegroups.com
Hi guys,

I've been reading the great book Test-Driven JavaScript Development, and the author likes to use the inline declaration for test cases, and strings as function names.

For example:

TestCase("MyTestCase", {
    'test function A'
:function(){
   
},
    'test function B'
:function(){
   
}
 
});
Is this officially supported? It works great now. Any reason this would stop working with future versions of the js-test-driver project? I like naming the test functions this way because it makes the output nicer.

Thanks!
Seth

Mária Jurčovičová

unread,
Mar 5, 2012, 8:19:12 AM3/5/12
to js-test...@googlegroups.com
Hi,

I do not know whether the feature is officially supported, but it worked Iast time I tried. However, Eclipse plugin has a bug and does not support it fully. See http://code.google.com/p/js-test-driver/issues/detail?id=337&sort=-id issue for details.

Meri

--
You received this message because you are subscribed to the Google Groups "JsTestDriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/js-test-driver/-/Fhr8xcRGT3AJ.
To post to this group, send email to js-test...@googlegroups.com.
To unsubscribe from this group, send email to js-test-drive...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/js-test-driver?hl=en.

Vic Khomyackov

unread,
Mar 5, 2012, 1:00:40 PM3/5/12
to js-test...@googlegroups.com
Eclipse plugin has a bug and does not support it fully. See http://code.google.com/p/js-test-driver/issues/detail?id=337&sort=-id issue for details.

Vote for this issue and it will be fixed sooner - in fact, it is already fixed, and all needed information and patches are attached, someone should just land this patch and rebuild plugin.

Cory Smith

unread,
Mar 13, 2012, 12:12:48 PM3/13/12
to js-test...@googlegroups.com
Sorry folks,

Work is a bit busy right now, so it'll be in April. I still need to
handle some legalese, and vet the patch that it does everything I
need. And add some tests to make sure it works as things change.

-c

> --
> You received this message because you are subscribed to the Google Groups
> "JsTestDriver" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/js-test-driver/-/Kz_NI1x8Mb8J.

Reply all
Reply to author
Forward
0 new messages