Problem/Motivation
PHPUnit does not include deprecations nor warnings in the JUnit output.
See Include deprecation/warning failures in JUnit logs
run-tests.sh in the parent issue #2905007: Allow run-tests.sh to report skipped/incomplete PHPUnit tests has been changed to be more adherent to JUnit logs in its report output - and reports as passed runs that throw such deprecations or warnings.
Proposed resolution
Look at exit codes of the PHPUnit CLI processes on top of the JUnit logs to report as failed tests that throw deprecations or warnings.
Screenshots - note that the screenshot refer to a test whose context was changed to lead to a test run failure, but the test itself is not in need of fixes:
Before

After

Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3535637
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3535637-improve-run-tests.sh-output
changes, plain diff MR !12703
Comments
Comment #3
mondrakeComment #4
mondrakeComment #5
mondrakeComment #6
godotislateHaven't had a chance yet to test locally what the junit looks like, but had a question about the need for and placement of the update hook.
Comment #7
mondrakeReplied inline. Yes, it's odd. Hopefully one day we will get rid of the test results database and of the
--sqliteargument in the run-tests.sh script.Comment #8
godotislateOK, tested locally, LGTM.
11.x
Merge request !12703
Comment #11
catchThanks for linking #2905007: Allow run-tests.sh to report skipped/incomplete PHPUnit tests because I'd forgotten about that and would have had to go through all the same thought process all over again. Apart from not adding an update at all, and potentially breaking people's local installs, we don't have much choice here.
This will help prevent a lot of confusion for a lot of people.
Committed/pushed to 11.x, thanks!