Sha256: 4093c9bce0b84a3313b9d04e068fc038f8c6a04e0f7949e27fafa677eaa29e24

Contents?: true

Size: 868 Bytes

Versions: 14

Compression:

Stored size: 868 Bytes

Contents

@spawn
Feature: Run Cli::Main with existing Runtime

  This is the API that Spork uses. It creates an existing runtime then
  calls load_programming_language('rb') on it to load the RbDsl.
  When the process forks, Spork them passes the runtime to Cli::Main to 
  run it.

    Scenario: Run a single feature
      Given the standard step definitions
      Given a file named "features/success.feature" with:
        """
        Feature: 
          Scenario: 
            Given this step passes
        """
      When I run the following Ruby code:
        """
        require 'cucumber'
        runtime = Cucumber::Runtime.new
        runtime.load_programming_language('rb')
        Cucumber::Cli::Main.new([]).execute!(runtime)
        
        """
      Then it should pass
      And the output should contain:
        """
        Given this step passes
        """

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cucumber-2.1.0 features/docs/api/run_cli_main_with_existing_runtime.feature
cucumber-2.0.2 features/docs/api/run_cli_main_with_existing_runtime.feature
cucumber-2.0.1 features/docs/api/run_cli_main_with_existing_runtime.feature
cucumber-2.0.0 features/docs/api/run_cli_main_with_existing_runtime.feature
cucumber-2.0.0.rc.5 features/docs/api/run_cli_main_with_existing_runtime.feature
cucumber-2.0.0.rc.4 features/docs/api/run_cli_main_with_existing_runtime.feature
cucumber-2.0.0.rc.3 features/docs/api/run_cli_main_with_existing_runtime.feature
cucumber-2.0.0.rc.2 features/docs/api/run_cli_main_with_existing_runtime.feature
cucumber-2.0.0.rc.1 features/docs/api/run_cli_main_with_existing_runtime.feature
cucumber-2.0.0.beta.5 features/docs/api/run_cli_main_with_existing_runtime.feature
cucumber-2.0.0.beta.4 features/docs/api/run_cli_main_with_existing_runtime.feature
cucumber-2.0.0.beta.3 features/docs/api/run_cli_main_with_existing_runtime.feature
cucumber-2.0.0.beta.2 features/docs/api/run_cli_main_with_existing_runtime.feature
cucumber-2.0.0.beta.1 features/docs/api/run_cli_main_with_existing_runtime.feature