This repository has been archived by the owner on Mar 1, 2019. It is now read-only.
forked from cucumber/aruba
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoverview.feature
61 lines (57 loc) · 1.61 KB
/
overview.feature
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Feature: Overview of steps
Given you're a system administrator
Who would like to use `aruba`
But didn't know which steps are available
Background:
Given I use a fixture named "cli-app"
Scenario: Use information found in repository
Given an executable named "bin/aruba-test-cli" with:
"""
#!/bin/bash
git clone https://github.com/cucumber/aruba.git
cd aruba
grep -E "When|Given|Then" lib/aruba/cucumber/*.rb | awk -F ":" '{ $1 = ""; print $0}' |sort
"""
And a file named "features/run.feature" with:
"""
Feature: Run it
Scenario: Run command
When I run `cli`
Then the output should contain:
\"\"\"
Cloning into 'aruba'...
\"\"\"
And the output should contain:
\"\"\"
Given(/^
\"\"\"
And the output should contain:
\"\"\"
When(/^
\"\"\"
And the output should contain:
\"\"\"
Then(/^
\"\"\"
"""
And the default aruba exit timeout is 60 seconds
When I run `cucumber`
Then the features should all pass
Scenario: Use cucumber output formatter
Given a file named "features/run.feature" with:
"""
Feature: Run it
Scenario: Run command
Given a directory named "features"
And a file named "features/support/env.rb" with:
\"\"\"
require 'aruba/cucumber'
\"\"\"
When I run `cucumber --format stepdefs`
Then the output should contain:
\"\"\"
NOT MATCHED BY ANY STEPS
\"\"\"
"""
When I run `cucumber`
Then the features should all pass