Skip to content

Consider running tests **without** src/ changes, to validate that they must **fail** #117

Open
@Ocramius

Description

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:

  1. checkout the changes
  2. reset source(s) (based on composer.json paths) to their pre-patch state
  3. 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)

  1. we will need a CLI utility that verifies this behavior inside the continuous-integration container
  2. we will need to adjust the CI matrix action to generate the appropriate verification job
  3. we only operate on locked dependencies

Metadata

Assignees

No one assigned

    Labels

    RFCRequest for Comment; proposal for major new feature or changes.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions