Re: one test, run many times with different files
| From: | Christoph Becker | Date: | Mon, 08 Sep 2014 13:21:56 +0000 |
| Subject: | Re: one test, run many times with different files | ||
| References: | 1 | Groups: | php.general php.qa |
| Request: | Send a blank email to php-qa+get-67414@lists.php.net to get a copy of this message | ||
Gary Johnson wrote:
> I am a newbie to phpunit. I have written 20 or so unit tests.
> I have done some RTFM. I have a set of tests that can that I want to run
> with multiple input files.
>
> My environment is linux , php 5.3 and up
> I can write bash scripts to iterate over the files in a number of ways.
>
> My boss to run tests by typing phpunit <directory>
>
>
> What is the phpunit way of running test1 with file1, file2, file3.... as
> input?
That is nicely explained in the PHPUnit manual:
<https://phpunit.de/manual/current/en/organizing-tests.html>.
(You may
have to switch to the PHPUnit version you're using.)
BTW: this mailing is list is meant for members of the PHP-QA team; the
question is better asked on the general user list
(<php-general@lists.php.net>). I have added it as receiver.
--
Christoph M. Becker