Re: [PEAR-QA] How does jenkins determine which dir / file to run tests from?

[email protected] (Daniel Convissor) Tue, 3 Jan 2012 13:09:02 -0500
Newsgroups php.pear.qa
Message-ID <[email protected]>
Hi Folks:

> Also, some packages have only .phpt tests, but they also provide an
> AllTests.php script providing the developers the option to run the tests
> using PHPUnit.  Please don't.  This can mean the tests get run twice in
> some situations.  Just invoke the tests like this:
>     pear run-tests -r tests

Wow.  I just realized newer versions of PHPUnit now have the ability run
.phpt tests out of the box without having to do anything like building
an AllTests.php file.  So just run PHPUnit as normal and it picks up all
the phpt tests.

      phpunit tests

Thanks,

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409