Sha256: 4c17c85aceeb4de64c8412bf2cbbd18e77b1759921ee8381953c03f2ff487eb7

Contents?: true

Size: 995 Bytes

Versions: 76

Compression:

Stored size: 995 Bytes

Contents

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.

    Background: 
      Given a standard Cucumber project directory structure

    Scenario: Run a single feature
      Given a file named "features/step_definitions/success.rb" with:
        """
        Given(/pass/) {}
        """
      Given a file named "features/success.feature" with:
        """
        Feature: 
          Scenario: 
            Given I pass
        """
      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 I pass
        """

Version data entries

76 entries across 74 versions & 11 rubygems

Version Path
cucumber-1.3.20 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.19 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.18 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.17 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.16 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.15 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.14 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.13 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.12 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.11 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.10 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.9 legacy_features/api/run_cli_main_with_existing_runtime.feature
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/legacy_features/api/run_cli_main_with_existing_runtime.feature
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/legacy_features/api/run_cli_main_with_existing_runtime.feature
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.8 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.7 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.6 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.5 legacy_features/api/run_cli_main_with_existing_runtime.feature
cucumber-1.3.4 legacy_features/api/run_cli_main_with_existing_runtime.feature