dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 439 forks source link

No TAP log found, please check the configuration. #1277

Open infisamk opened 8 years ago

infisamk commented 8 years ago

If I enable php_unit in test section in phpci.yml, I got exception "No TAP log found, please check the configuration.". But phpunit tests are ok.

I change line 152 in PHPCI/Plugin/PhpUnit.php to: $this->phpci->logExecOutput(true);

Then build with tests is working ok.

ptejada commented 8 years ago

@infisamk Do you do any output buffering in your code? The TAP parser relies on the standard output.

infisamk commented 8 years ago

It's default Symfony's AppBundle and test.

ptejada commented 8 years ago

Sorry, I am not familiar with the Symfony AppBundle.

You can try this patch I worked on as an alternative to the TAP parser: https://github.com/Block8/PHPCI/pull/1275

On Tue, Oct 25, 2016, 12:36 AM infisamk notifications@github.com wrote:

It's default Symfony's AppBundle and test.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Block8/PHPCI/issues/1277#issuecomment-255934083, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPd3X5kVo3ZPYz2m37kNOteBZqH3cKqks5q3YddgaJpZM4KeieM .

Sincerely,

Pablo Tejada

From Mobile

infisamk commented 8 years ago

Symfony framework use output buffer.

Default php_unit is working only with my change. New plugin is working ok.