File: run_cli_main_with_existing_runtime.feature

package info (click to toggle)
cucumber 2.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,076 kB
  • sloc: ruby: 17,016; javascript: 4,641; makefile: 12; sh: 10; tcl: 3
file content (26 lines) | stat: -rw-r--r-- 739 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@spawn
Feature: Run Cli::Main with existing Runtime

  This is the API that Spork uses. It creates an existing runtime.
  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
        Cucumber::Cli::Main.new([]).execute!(runtime)
        """
      Then it should pass
      And the output should contain:
        """
        Given this step passes
        """