Skip to content

Commit

Permalink
Working cucumber test
Browse files Browse the repository at this point in the history
  • Loading branch information
avh4 committed Feb 26, 2014
1 parent bbf2183 commit 2ccd3f1
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
/pkg
/main
allup
6 changes: 6 additions & 0 deletions Gemfile
@@ -0,0 +1,6 @@
source 'https://rubygems.org'

ruby '2.0.0'

gem 'cucumber', '~> 1.3.9'
gem 'aruba', '~> 0.5.4'
31 changes: 31 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,31 @@
GEM
remote: https://rubygems.org/
specs:
aruba (0.5.4)
childprocess (>= 0.3.6)
cucumber (>= 1.1.1)
rspec-expectations (>= 2.7.0)
builder (3.2.2)
childprocess (0.5.1)
ffi (~> 1.0, >= 1.0.11)
cucumber (1.3.10)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.12)
multi_json (>= 1.7.5, < 2.0)
multi_test (>= 0.0.2)
diff-lcs (1.2.5)
ffi (1.9.3)
gherkin (2.12.2)
multi_json (~> 1.3)
multi_json (1.8.4)
multi_test (0.0.3)
rspec-expectations (2.14.5)
diff-lcs (>= 1.1.3, < 2.0)

PLATFORMS
ruby

DEPENDENCIES
aruba (~> 0.5.4)
cucumber (~> 1.3.9)
6 changes: 6 additions & 0 deletions README.md
@@ -0,0 +1,6 @@

## Development commands

- Bootstrap: `bundle`
- Run acceptance tests: `cucumber`
- Run tests: ``GOPATH=`pwd` go test allup``
4 changes: 4 additions & 0 deletions features/example.feature
@@ -0,0 +1,4 @@
Feature: test cucumber
Scenario: couchdb is ready to go
When I run `allup`
Then the output should contain "Hello World"
9 changes: 9 additions & 0 deletions features/support/env.rb
@@ -0,0 +1,9 @@
require 'aruba/cucumber'

allup_dir = File.expand_path('../../../', __FILE__)

raise 'allup build failed' unless system('GOPATH=`pwd` go build -o allup main')

Before do
set_env 'PATH', "#{allup_dir}:#{ENV['PATH']}"
end

0 comments on commit 2ccd3f1

Please sign in to comment.