-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Consider running tests **without** src/
changes, to validate that they must **fail**
#117
Comments
Two exceptions I realized that should be applied here:
It should be possible to detect 1) easily (0 added lines, X removed lines), but it's probably not possible to detect 2) reliably. |
|
This seems difficult than it looks. I think the only way to know the intension of the commit is to express whether the test is a "failing test" or a "regression test" in the commit message or something. so I can think of a CI that
|
Note: the |
Not 100% sure what this is about. Do we talk about something like: git diff --staged ${TARGET_BRANCH_REF} src/ > pr.patch
git checkout ${TARGET_BRANCH_REF}
git apply pr.patch
vendor/bin/phpunit |
more like
|
See the linked PR above |
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.json
paths) to their pre-patch stateConsiderations
composer.lock
changed together with the tests?Proposal(s)
The text was updated successfully, but these errors were encountered: