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

[5.5] Be less strict for risky tests in PHPUnit 6. #17864

Merged
merged 1 commit into from
Feb 10, 2017
Merged

[5.5] Be less strict for risky tests in PHPUnit 6. #17864

merged 1 commit into from
Feb 10, 2017

Conversation

lucasmichot
Copy link
Contributor

@lucasmichot lucasmichot commented Feb 10, 2017

PHPunit 6 echoes all risky tests for not actually testing anything. This turns the output into something very unfriendly:

screen shot 2017-02-10 at 12 29 30


This PR allows not to display them.

screen shot 2017-02-10 at 12 29 01

@lucasmichot lucasmichot changed the title [5.5] Be less strict for some tests in PHPUnit 6. [5.5] Be less strict for risky tests in PHPUnit 6. Feb 10, 2017
@taylorotwell taylorotwell merged commit 19c201b into laravel:master Feb 10, 2017
@lucasmichot lucasmichot deleted the feature/master/tests-no-assertions branch February 10, 2017 14:19
@GrahamCampbell
Copy link
Member

👎 Tests should instead be annotated with the has no assertions annotation.

@lucasmichot
Copy link
Contributor Author

lucasmichot commented Feb 11, 2017

No, annotating all these tests would result in a too big PR to review, that would not be merged anyway

@GrahamCampbell
Copy link
Member

Would be easy to review.

@carusogabriel
Copy link
Contributor

@GrahamCampbell What annotation you were talking about? I need it, but can't find 😄

@gmsantos
Copy link
Contributor

@carusogabriel sebastianbergmann/phpunit#2484 (comment)

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.

5 participants