Problem/Motivation
Over in the drupalci testbot issue queue we have this issue: #2569585: Split incoming patches into psr0/psr4 tests and code and run just new tests first.
The point of that issue is to provide a way to run changed tests first and potentially allow them to fail out the test process.
In order to keep a separation of concerns, we should have core provide a list of test files which can be compared to a list of modified files by the testbot.
This way, modified tests can be prioritized without turning the testbot into a horribly opinionated tool.
We could also use this new option to provide a list of tests which have been modified, and/or deleted.
Proposed resolution
Add run-tests.sh --list-files and run-tests.sh --list-files-json.
These will be similar to run-tests.sh --list, except they will provide either the file list, or a structured JSON classmap.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | interdiff.txt | 538 bytes | mile23 |
| #9 | 2841948_9.patch | 2.04 KB | mile23 |
| #7 | interdiff.txt | 538 bytes | mile23 |
| #7 | 2821387_17.patch | 72.56 KB | mile23 |
| #5 | interdiff.txt | 349 bytes | mile23 |
Comments
Comment #2
mile23Patch.
Comment #3
mile23Comment #5
mile23Typo.
Comment #6
dawehnerShould we document what this might be used for on the testbot side? Basically copy what is in the issue summary ...
Comment #7
mile23Added.
Comment #9
mile23Note to self: Don't work on two things at the same time.
Comment #11
dawehnerGreat!
One day we might be even able to provide test coverage for those things.
I tested both the non JSON and the JSON variant. We have a good amount of tests :)
Comment #12
alexpottCommitted and pushed fa4c50a to 8.3.x and fba8750 to 8.2.x. Thanks!
I've committed this to both 8.2.x and 8.3.x since supporting DrupalCI is important and run-tests.sh is not runtime code and this does not make any risky changes.