Skip to content

Maven: Failsafe's IT* and *ITCase tests are not recognised #210

Closed

Description

@FredApps

isTest (src/repo/adapters/maven.ts) accepts Surefire's default names (Test*, *Test, *Tests, *TestCase) and Failsafe's *IT. It does not accept Failsafe's other two defaults, IT* and *ITCase. With "maven": { "goal": "verify" }, Failsafe runs those classes, but DiffCI does not count them as tests.

diffci.json                                         { "maven": { "goal": "verify" } }
service/pom.xml                                     depends on library
service/src/main/java/example/Service.java
service/src/test/java/example/ITServiceFlow.java
service/src/test/java/example/ServiceITCase.java

Expected: a change to Service.java selects the service module's integration tests.

Actual: fallbackRequired: false and no affected tests, so mvn verify is not run for service at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions