To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorGetting started with Cucumber and aruba
- Background
-
- Given
- I use the fixture "empty-app"
- Scenarios
-
- Simple Integration
-
To use the simple integration just require
aruba/cucumber
in your
features/support/env.rb
.The simple integration adds some
Before
-hooks for you:* Setup Aruba Test directory
* Clear environment (ENV)
* Make HOME-variable configurable viaaruba.config.home_directory
* Activate announcers based on@announce-<name>
-tags- Given
-
a file named "features/support/env.rb" with:
require 'aruba/cucumber'
- And
-
a file named "features/use_aruba_with_cucumber.feature" with:
Feature: Cucumber Scenario: First Run Given a file named "file.txt" with: """ Hello World """ Then the file "file.txt" should contain: """ Hello World """
- When
-
I run
cucumber
- Then
- the features should all pass
- Custom Integration
-
There might be some use cases where you want to build an aruba integration
of your own. You need to include the API and make sure, that you run*
setup_aruba
*terminate_all_commands
before any method of aruba is used.
- Given
-
a file named "features/support/env.rb" with:
require 'aruba/api' World(Aruba::Api) Before do # Make sure you command can be found by "aruba" prepend_environment_variable 'PATH', aruba.config.command_search_paths.join(':') + ':' # Mock HOME-directory set_environment_variable 'HOME', aruba.config.home_directory end # Make sure you command can be found by "aruba" After do terminate_all_commands aruba.command_monitor.clear end # Clean up Before('[email protected]') do setup_aruba end
- And
-
a file named "features/use_aruba_with_cucumber.feature" with:
Feature: Cucumber Scenario: First Run Given a file named "file.txt" with: """ Hello World """ Then the file "file.txt" should contain: """ Hello World """
- When
-
I run
cucumber
- Then
- the features should all pass
Last published almost 6 years ago by philoserf.