Skip to content

Added phpunit problem matcher#2757

Merged
TomasVotruba merged 6 commits intorectorphp:masterfrom
staabm:patch-4
Jan 28, 2020
Merged

Added phpunit problem matcher#2757
TomasVotruba merged 6 commits intorectorphp:masterfrom
staabm:patch-4

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Jan 25, 2020

Similar to #2756 this will enable reporting of phpunit test failures into the files-changed PR tab

@TomasVotruba
Copy link
Copy Markdown
Member

Now there are false positives. Error reported for skipped tests

@staabm
Copy link
Copy Markdown
Contributor Author

staabm commented Jan 25, 2020

Reported the issue upstream in shivammathur/setup-php#163

Not sure it is fixable though

@staabm
Copy link
Copy Markdown
Contributor Author

staabm commented Jan 25, 2020

After checking the phpunit sources, I wonder why we see the infos printed regarding skipped tests.
https://github.com/sebastianbergmann/phpunit/blob/b6fcd8290a37d301a4a87abaf2593d5f1ac5bd45/src/TextUI/DefaultResultPrinter.php#L168

These should only be printed in verbose-mode

@staabm
Copy link
Copy Markdown
Contributor Author

staabm commented Jan 25, 2020

Guess I found it

Comment thread phpunit.xml
@staabm
Copy link
Copy Markdown
Contributor Author

staabm commented Jan 26, 2020

We got an upstream release and things are looking better now

@staabm
Copy link
Copy Markdown
Contributor Author

staabm commented Jan 28, 2020

Any feedback?

Comment thread .github/workflows/tests.yaml Outdated
Comment thread .github/workflows/tests.yaml
@TomasVotruba TomasVotruba self-requested a review January 28, 2020 22:26
@staabm
Copy link
Copy Markdown
Contributor Author

staabm commented Jan 28, 2020

Here you are!

@TomasVotruba
Copy link
Copy Markdown
Member

Looks good!
Let's wait for CI and merge then

Thank you for your work 👍

@TomasVotruba TomasVotruba merged commit 4678afe into rectorphp:master Jan 28, 2020
@staabm staabm deleted the patch-4 branch January 28, 2020 22:54
@TomasVotruba
Copy link
Copy Markdown
Member

I'll look how this can be added for Rector

TomasVotruba added a commit that referenced this pull request Aug 12, 2022
rectorphp/rector-src@858f055 [Core] Move Scope Resolver to ScopeAnalyzer (#2757)
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.

2 participants