Deprecated API

Contents

  • Terminally Deprecated Elements
    Element
    Description
    JUnit 4 is in maintenance mode. Upgrade to JUnit 5+ and switch to the cucumber-junit-platform-engine.
    JUnit 4 is in maintenance mode. Upgrade to JUnit 5 and switch to the cucumber-junit-platform-engine.
    Since v3.6.0 Maven Surefire uses the JUnit Platform to run TestNG. Cucumber support the JUnit Platform directly. Since v9.4.0 Gradle supports resource based test on the JUnit Platform. This leaves little reason to support a dedicated TestNG runner.

    Please switch to cucumber-junit-platform-engine. If there are missing features that prevent you from upgrading please create an issue.

    Since v3.6.0 Maven Surefire uses the JUnit Platform to run TestNG. Cucumber support the JUnit Platform directly. Since v9.4.0 Gradle supports resource based test on the JUnit Platform. This leaves little reason to support a dedicated TestNG runner.

    Please switch to cucumber-junit-platform-engine. If there are missing features that prevent you from upgrading please create an issue.

    Since v3.6.0 Maven Surefire uses the JUnit Platform to run TestNG. Cucumber support the JUnit Platform directly. Since v9.4.0 Gradle supports resource based test on the JUnit Platform. This leaves little reason to support a dedicated TestNG runner.

    Please switch to cucumber-junit-platform-engine. If there are missing features that prevent you from upgrading please create an issue.

  • Deprecated Annotation Interfaces
    Annotation Interface
    Description
    JUnit 4 is in maintenance mode. Upgrade to JUnit 5 and switch to the cucumber-junit-platform-engine.
    Please use the JUnit Platform Suite to run Cucumber in combination with Surefire or Gradle. E.g:
    
     package com.example;
    
     import org.junit.platform.suite.api.ConfigurationParameter;
     import org.junit.platform.suite.api.SelectPackages;
     import org.junit.platform.suite.api.Suite;
    
     import static io.cucumber.junit.platform.engine.Constants.GLUE_PROPERTY_NAME;
    
                 @Suite
                 @SelectPackages("com.example")
                 @ConfigurationParameter(
                 key = GLUE_PROPERTY_NAME,
                 value = "com.example")
                 final class RunCucumberTest {
                 }
     
    Since v3.6.0 Maven Surefire uses the JUnit Platform to run TestNG. Cucumber support the JUnit Platform directly. Since v9.4.0 Gradle supports resource based test on the JUnit Platform. This leaves little reason to support a dedicated TestNG runner.

    Please switch to cucumber-junit-platform-engine. If there are missing features that prevent you from upgrading please create an issue.