Skip to content

[SUREFIRE-823] Surefire needs distinct (from failsafe) test skip #1766

@jira-importer

Description

@jira-importer

James Nord opened SUREFIRE-823 and commented

If you use both surefire and failsafe in the same project there is no way to skip unit tests but run failsafe tests (as the surefire -DskipTests=true flag is also used by failsafe).

The only way around this is to override the default surefire plugin configuration to change the skipTets property to use a different property - however this is combersome and the project may not belong to you (so each time you need to edit the project locally).

It would be beneficial if you could somehow bypass surefire unit tests but still run failsafe integration tests via the lifecycle.
(ie not using the goals directly as there may be some code gen or other that is needed in an eralier phase)


Issue Links:

  • SUREFIRE-1170 skiptTests=true is used by maven-surefire-plugin as well as of maven-failsafe-plugin
    ("is duplicated by")

  • SUREFIRE-868 Add skipUnits property to Surefire Plugin

  • SUREFIRE-1610 Provide a flag for skipping test execution that isn't shared with Failsafe

2 votes, 5 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions