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.

run_cli_main_with_existing_runtime.feature 793 B

2 years ago
1234567891011121314151617181920212223242526
  1. Feature: Run Cli::Main with existing Runtime
  2. This is the API that Spork uses. It creates an existing runtime.
  3. When the process forks, Spork them passes the runtime to Cli::Main to
  4. run it.
  5. Scenario: Run a single feature
  6. Given the standard step definitions
  7. Given a file named "features/success.feature" with:
  8. """
  9. Feature:
  10. Scenario:
  11. Given this step passes
  12. """
  13. And a file named "create_runtime.rb" with:
  14. """
  15. require 'cucumber'
  16. runtime = Cucumber::Runtime.new
  17. Cucumber::Cli::Main.new([]).execute!(runtime)
  18. """
  19. When I run `bundle exec ruby create_runtime.rb`
  20. Then it should pass
  21. And the output should contain:
  22. """
  23. Given this step passes
  24. """

No Description

Contributors (1)