You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 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
- """
- And a file named "create_runtime.rb" with:
- """
- require 'cucumber'
- runtime = Cucumber::Runtime.new
- Cucumber::Cli::Main.new([]).execute!(runtime)
- """
- When I run `bundle exec ruby create_runtime.rb`
- Then it should pass
- And the output should contain:
- """
- Given this step passes
- """
|