Skip to content

JUnit 5 - Better support for disabling tests #1866

@rholshausen

Description

@rholshausen

This is the tracking issue for what was discussed in #1844. It requires 2 parts to be implemented:

  1. Provide a way to ignore (or conditionally ignore) a @Pact annotated method

The main issue here is that if a test is ignored for some reason, the @Pact annotated method will never be called, and the test will class will be marked as failed.

  1. Support for using the JUnit 5 annotations
org.junit.jupiter.api.condition.DisabledForJreRange
org.junit.jupiter.api.condition.DisabledIf
org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable
org.junit.jupiter.api.condition.DisabledIfEnvironmentVariables
org.junit.jupiter.api.condition.DisabledIfSystemProperties
org.junit.jupiter.api.condition.DisabledIfSystemProperty
org.junit.jupiter.api.condition.DisabledInNativeImage
org.junit.jupiter.api.condition.DisabledOnJre
org.junit.jupiter.api.condition.DisabledOnOs

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIndicates new feature requestssmartbear-supportedSmartBear engineering team will support this issue. See https://docs.pact.io/help/smartbear

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions