Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display test framework output when initial tests fail #65

Merged
merged 1 commit into from Oct 28, 2017

Conversation

maks-rafalko
Copy link
Member

Before:

Tests do not pass. Error code 2. "Misuse of shell builtins". STDERR

After

[ERROR] Project tests must be in a passing state before running Infection.

         Phpunit reported an exit code of 2.

         Refer to the phpunit's output below:

         STDOUT:

         PHPUnit 6.1.0 by Sebastian Bergmann and contributors.

         ....................SS..S...E

         Time: 1.4 seconds, Memory: 12.00MB

         There was 1 error:

         1) Infection\Tests\Config\ValueProvider\PhpUnitPathProviderTest::test_validates_incorrect_dir
         Symfony\Component\Console\Exception\RuntimeException: Aborted

         path/vendor/symfony/console/Helper/QuestionHelper.php:157
         path/vendor/symfony/console/Helper/QuestionHelper.php:62

         ERRORS!
         Tests: 29, Assertions: 37, Errors: 1, Skipped: 3.

         Generating code coverage report in PHPUnit XML format ... done

Will help with issues like #61 .

@maks-rafalko maks-rafalko added this to the 0.6.1 milestone Oct 28, 2017
@maks-rafalko maks-rafalko merged commit 80fd986 into master Oct 28, 2017
@maks-rafalko maks-rafalko deleted the initial-fail-message branch October 28, 2017 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant