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

Fix ci: travis - Better test that phpunit really completed #32688

Open
wants to merge 2 commits into
base: 21.0
Choose a base branch
from

Conversation

mdeweerd
Copy link
Contributor

@mdeweerd mdeweerd commented Jan 16, 2025

Fix ci: travis - Better test that phpunit really completed

Check that phpunit completed by looking for the test summary.

@mdeweerd mdeweerd marked this pull request as ready for review January 16, 2025 23:40
@mdeweerd
Copy link
Contributor Author

@eldy This makes travis fail if phpunit does not have a test conclusion.

In this PR it fails because the exit is still present in the SecurityTest.php. So this is proof that the extra code works when it fails.
I'll let you update the SecurityTest.php here so that you can observe for yourself that travis no longer fails when that is fixed.

Later this can be backported to an older branch if you want.

@mdeweerd mdeweerd changed the title Fix ci: travis - Better test if phpunit completed Fix ci: travis - Better test that phpunit really completed Jan 16, 2025
@mdeweerd mdeweerd force-pushed the fix/travis_phpunit_test branch from d05f379 to bbec07a Compare January 17, 2025 10:10
@mdeweerd mdeweerd marked this pull request as draft January 17, 2025 11:28
@mdeweerd mdeweerd force-pushed the fix/travis_phpunit_test branch 3 times, most recently from 1211a74 to 07b64b7 Compare January 17, 2025 13:45
# Fix ci: travis - Better test if phpunit completed
@mdeweerd mdeweerd force-pushed the fix/travis_phpunit_test branch from 07b64b7 to 720b911 Compare January 17, 2025 13:53
@mdeweerd
Copy link
Contributor Author

@eldy Further improved + showing message with result code instead of abruptly exiting.

@mdeweerd mdeweerd marked this pull request as ready for review January 17, 2025 14:05
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.

1 participant