Class TigerLauncherDiscoveryListener

java.lang.Object
io.cucumber.core.plugin.TigerLauncherDiscoveryListener
All Implemented Interfaces:
org.junit.platform.engine.EngineDiscoveryListener, org.junit.platform.launcher.LauncherDiscoveryListener

public class TigerLauncherDiscoveryListener extends Object implements org.junit.platform.launcher.LauncherDiscoveryListener
We want to be able to force a dry run where the tests are only discovered and not executed.

When running tests with maven or with a junit5 driver class, the Junit Platform launcher will automatically find test engines to discover and run tests. By having this listener we can change the dry run configuration before the cucumber engine starts discovering tests.

  • Field Summary

    Fields inherited from interface org.junit.platform.launcher.LauncherDiscoveryListener

    NOOP
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    launcherDiscoveryStarted(org.junit.platform.launcher.LauncherDiscoveryRequest request)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.junit.platform.engine.EngineDiscoveryListener

    selectorProcessed

    Methods inherited from interface org.junit.platform.launcher.LauncherDiscoveryListener

    engineDiscoveryFinished, engineDiscoveryStarted, launcherDiscoveryFinished
  • Constructor Details

    • TigerLauncherDiscoveryListener

      public TigerLauncherDiscoveryListener()
  • Method Details

    • launcherDiscoveryStarted

      public void launcherDiscoveryStarted(org.junit.platform.launcher.LauncherDiscoveryRequest request)
      Specified by:
      launcherDiscoveryStarted in interface org.junit.platform.launcher.LauncherDiscoveryListener