You are viewing a plain text version of this content. The canonical link for it is here.
Posted to zeta-dev@incubator.apache.org by James Pic <ja...@gmail.com> on 2012/02/09 11:41:23 UTC
[zeta-dev] PHPUnit regression: cannot run the testsuite of one component
Hi all,
Before, we could run the test suite of a component as such:
UnitTest/src/runtests.php Database
But the new test runner does not allow this. For example, phpunit --filter
Database will fail in two ways:
0) test cases without Database in the class name will be omited
(ie. ezcQueryExpressionTest from
Database/tests/sqlabstraction/expression_test.php)
1) test cases with Database in the class name from other components will be
included (ezcDatabaseSchemaGenericTest from
DatabaseSchema/tests/generic_test.php)
Solutions:
0) Flyingmana suggested to use regexps in --filter, document the regexp to
use for each component
1) annotate every test method with @group ComponentName
I'm not sure about these solutions because correct me if I'm wrong but that
looks error prone.
So, should we start implementing any of these solutions ?
Cheers from Lisboa at eZ Winter Conference
Re: [zeta-dev] Re: PHPUnit regression: cannot run the testsuite of
one component
Posted by James Pic <ja...@gmail.com>.
Sorry there was a small isssue with the previous pull request so here's the
new URL: https://github.com/sebastianbergmann/phpunit/pull/495
Re: [zeta-dev] Re: PHPUnit regression: cannot run the testsuite of one component
Posted by Nicolas Pastorino <nf...@ez.no>.
On Feb 9, 2012, at 18:03 , Maxime Thomas wrote:
> 2012/2/9 James Pic <ja...@gmail.com>
>
>> We might have a better solution, if only Sebastian accepts to add a
>> --testsuite filter.
>>
>> Please read the pull request description for details:
>> https://github.com/sebastianbergmann/phpunit/pull/494
>>
>> Credits to Derick for his great support while finding/implementing this
>> solution (0day fix found, feels great B).
>>
>> Cheers from Portugal
>>
>
> Ahah.
> Harass him !
+1 ;)
I'd love to see it merged.
Thanks James for this !
--
Nicolas
PS : Pull-request as new feature : https://github.com/sebastianbergmann/phpunit/pull/495
Re: [zeta-dev] Re: PHPUnit regression: cannot run the testsuite of
one component
Posted by Maxime Thomas <ma...@gmail.com>.
2012/2/9 James Pic <ja...@gmail.com>
> We might have a better solution, if only Sebastian accepts to add a
> --testsuite filter.
>
> Please read the pull request description for details:
> https://github.com/sebastianbergmann/phpunit/pull/494
>
> Credits to Derick for his great support while finding/implementing this
> solution (0day fix found, feels great B).
>
> Cheers from Portugal
>
Ahah.
Harass him !
--
Maxime
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou
[zeta-dev] Re: PHPUnit regression: cannot run the testsuite of one component
Posted by James Pic <ja...@gmail.com>.
We might have a better solution, if only Sebastian accepts to add a
--testsuite filter.
Please read the pull request description for details:
https://github.com/sebastianbergmann/phpunit/pull/494
Credits to Derick for his great support while finding/implementing this
solution (0day fix found, feels great B).
Cheers from Portugal