RFC
| Q |
A |
| Proposed Version(s) |
? |
| BC Break? |
No |
Goal
We want to verify that the tests accompanying a source change do validate the source change.
Background
This was discussed with @ondrejmirtes in private chat.
When receiving a source change, the accompanying tests must be verified for their quality.
In order to do that, we could:
- checkout the changes
- reset source(s) (based on
composer.json paths) to their pre-patch state
- run the tests, expect them to fail
Considerations
- what to do when only tests are changed?
- what to do when only sources are changed?
- what to do when
composer.lock changed together with the tests?
Proposal(s)
- we will need a CLI utility that verifies this behavior inside the continuous-integration container
- we will need to adjust the CI matrix action to generate the appropriate verification job
- we only operate on locked dependencies
RFC
Goal
We want to verify that the tests accompanying a source change do validate the source change.
Background
This was discussed with @ondrejmirtes in private chat.
When receiving a source change, the accompanying tests must be verified for their quality.
In order to do that, we could:
composer.jsonpaths) to their pre-patch stateConsiderations
composer.lockchanged together with the tests?Proposal(s)