[limb-users] TESTS_RUNNER-0.8.6 Released!
Pavel Shevaev
pacha.shevaev at gmail.com
Fri Nov 9 14:30:57 MSK 2007
We are glad to announce the new release of the TESTS_RUNNER package
which ships with limb_unit - a SimpleTest tests "swiss army knife"
console based runner.
The CHANGELOG for this release is as follows:
* -- adding test cases filtering by group annotation(TR-18), e.g:
$ limb_unit --groups=db,auth sometest.php
* -- adding test methods filtering(TR-20), e.g:
$ limb_unit --methods=testFoo,testBar sometest.php
* -- lmbTestOptions added, it will be used as a global container
for all options
* -- better configuration file(passed with -c option) invalid
syntax checking
* -- fixing coverage summary output without generating html reports
This release introduces some unique features which can be quite useful
for large sets of tests. They are test class annotation groups
selectors and test methods filtering.
Annotation groups selector allows you to execute only those test cases
which have some specific @group annotation tags. For example, running
the following command:
$ limb_unit -G db,auth test1.php test2.php
...will yield executing only those test cases from test1.php and
test2.php files which have @group annotation tag matching "db,auth"
filter, e.g:
/**
* group db
*/
class MyTest1 extends UnitTestCase
...
/**
* group auth,db
*/
class MyTest2 extends UnitTestCase
...
Test methods filtering allows to run only those test methods which
match the passed filter. For example, the following command:
$ limb_unit -M testFoo,testBar test.php
..will execute only testFoo and testBar methods omitting the rest ones
found in all test cases in test.php file.
TESTS_RUNNER package can be installed via Limb pear channel using the
shell commands below:
# pear channel-discover pear.limb-project.com
# pear install limb/tests_runner-beta
Happy testing!
--
Best regards, Pavel
More information about the limb-users
mailing list