theboocock / shunit2

Automatically exported from code.google.com/p/shunit2
0 stars 0 forks source link

Tool to support aggregation of tests #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The tool would be similar to the shunit_test.sh tool already provided, but 
would aggregate results 
and produce a final report.

Original issue reported on code.google.com by kate.a.w...@gmail.com on 7 Oct 2008 at 11:37

GoogleCodeExporter commented 9 years ago
Just a thought — would making the tests emit TAP[1] help?  Then you could 
plug in to
Perl's testing tools (e.g. prove[2]).

[1] http://en.wikipedia.org/wiki/Test_Anything_Protocol

[2] http://search.cpan.org/perldoc?prove

Original comment by dom.happ...@gmail.com on 17 Jun 2009 at 12:31

GoogleCodeExporter commented 9 years ago
I just did something possibly related to this. In shunit2,version 2.1.6, a 
"standalone" mode was added.  With this you can call shunit2 and pass a file 
name. I extended that so you can give a *list* of test files. Totals are then 
given for the *collection* of tests, and the totals include the number of 
tests, the number of assertions, passed assertions, failed assertions and 
skipped assertions.

One can still run each test individually. In fact if you look at how I wrote 
the tests, you'll see how to write a test (in zsh, but bash and ksh can be done 
similarly) so that it can be run either way: by invoking the test name or as an 
argument to shunit in "standalone" mode. 

See https://gist.github.com/973684  The project that has all of this is zshdb 
https://github.com/rocky/zshdb/wiki

Original comment by rocky.bernstein on 15 May 2011 at 11:54

Attachments: