-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dennis Günnewig
committed
Jul 6, 2015
1 parent
fe385e0
commit 3b52099
Showing
40 changed files
with
537 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,62 @@ | ||
source 'https://rubygems.org' | ||
|
||
# Use dependencies from gemspec | ||
gemspec | ||
|
||
group :development, :test do | ||
end | ||
|
||
# Debug aruba | ||
group :debug do | ||
gem 'pry', '~> 0.10.1' | ||
|
||
platform :mri_20 do | ||
platform :mri_20, :mri_21, :mri_22 do | ||
gem 'byebug', '~> 4.0.5' | ||
gem 'pry-byebug', '~> 3.1.0' | ||
end | ||
|
||
gem 'pry-stack_explorer', '~> 0.4.9' | ||
platform :mri_19, :mri_20, :mri_21, :mri_22 do | ||
gem 'pry-stack_explorer', '~> 0.4.9' | ||
end | ||
|
||
gem 'pry-doc', '~> 0.8.0' | ||
end | ||
|
||
group :development, :test do | ||
gem 'bcat', '~> 0.6.2' | ||
gem 'kramdown', '~> 1.7.0' | ||
# Run development tasks | ||
gem 'rake', '~> 10.4.2' | ||
|
||
platform :mri_19, :mri_20, :mri_21, :mri_22 do | ||
# Reporting | ||
gem 'bcat', '~> 0.6.2' | ||
gem 'kramdown', '~> 1.7.0' | ||
end | ||
|
||
# Code Coverage | ||
gem 'simplecov', '~> 0.10' | ||
gem 'rake', '~> 10.4.2' | ||
|
||
# Test api | ||
gem 'rspec', '~> 3.3.0' | ||
gem 'fuubar', '~> 2.0.0' | ||
gem 'cucumber-pro', '~> 0.0' | ||
gem 'rubocop', '~> 0.32.0' | ||
|
||
gem 'license_finder', '~> 2.0.4' | ||
# Make aruba compliant to ruby community guide | ||
platform :mri_19, :mri_20, :mri_21, :mri_22 do | ||
gem 'rubocop', '~> 0.32.0' | ||
end | ||
|
||
platform :mri_19, :mri_20, :mri_21, :mri_22 do | ||
gem 'cucumber-pro', '~> 0.0' | ||
end | ||
|
||
platform :mri_19, :mri_20, :mri_21, :mri_22 do | ||
# License compliance | ||
gem 'license_finder', '~> 2.0.4' | ||
end | ||
|
||
gem 'relish', '~> 0.7.1' | ||
platform :mri_19, :mri_20, :mri_21, :mri_22 do | ||
# Upload documentation | ||
gem 'relish', '~> 0.7.1' | ||
end | ||
end | ||
|
||
platforms :rbx do | ||
gem 'rubysl', '~> 2.0' | ||
gem 'rubinius-developer_tools' | ||
end | ||
|
||
# Use source from sibling folders (if available) instead of gems | ||
# %w[cucumber].each do |g| | ||
# if File.directory?(File.dirname(__FILE__) + "/../#{g}") | ||
# @dependencies.reject!{|dep| dep.name == g} | ||
# gem g, :path => "../#{g}" | ||
# end | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s| | |
s.email = '[email protected]' | ||
s.homepage = 'http://github.com/cucumber/aruba' | ||
|
||
s.add_runtime_dependency 'cucumber', '~> v1.3.19' | ||
s.add_runtime_dependency 'cucumber', '~> 1.3.19' | ||
s.add_runtime_dependency 'childprocess', '~> 0.5.6' | ||
s.add_runtime_dependency 'rspec-expectations', '~> 3.3.0' | ||
s.add_runtime_dependency 'contracts', '~> 0.9' | ||
|
@@ -19,7 +19,12 @@ Gem::Specification.new do |s| | |
|
||
s.rubygems_version = ">= 1.6.1" | ||
s.required_ruby_version = '>= 1.8.7' | ||
s.post_install_message = 'From aruba >= 1.0 ruby 1.8.7-support is discontinued. aruba >= 1.0 will also require "cucumber 2" for the feature steps. The rest of aruba should be usable by whatever testing framework you are using.' | ||
s.post_install_message = <<-EOS | ||
With aruba >= 1.0 | ||
* "ruby 1.8.7"-support is discontinued | ||
* aruba requires "cucumber 2" for the feature steps. The rest of aruba should be usable by whatever testing framework you are using | ||
* "aruba/reporting" will be removed. Please use `@debug`-tag + `byebug`, `debugger`, `pry` to troubleshoot your feature tests | ||
EOS | ||
|
||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {spec,features}/*`.split("\n") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) | ||
|
||
require 'cli/app' | ||
require 'aruba/rspec' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
asdf | ||
a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Feature: Check if a timeout occured during command execution | ||
|
||
If you want to check if a command takes to long to finish it's work | ||
|
||
Background: | ||
Given I use a fixture named "cli-app" | ||
|
||
Scenario: Check if command runs to long | ||
Given a file named "bin/cli" with: | ||
""" | ||
#!/usr/bin/env sh | ||
sleep 1 | ||
""" | ||
And a file named "spec/timeout_spec.rb" with: | ||
""" | ||
require 'spec_helper' | ||
RSpec.describe 'Long running command', :type => :aruba do | ||
before(:each) { aruba.config.exit_timeout = 0 } | ||
before(:each) { run('cli') } | ||
it { expect(last_command).to run_too_long } | ||
end | ||
""" | ||
When I run `rspec` | ||
Then the specs should all pass | ||
|
||
Scenario: Check if command finishes in time | ||
Given a file named "bin/cli" with: | ||
""" | ||
#!/usr/bin/env sh | ||
exit 0 | ||
""" | ||
And a file named "spec/timeout_spec.rb" with: | ||
""" | ||
require 'spec_helper' | ||
RSpec.describe 'Short running command', :type => :aruba do | ||
before(:each) { aruba.config.exit_timeout = 5 } | ||
before(:each) { run('cli') } | ||
it { expect(last_command).to have_finished_in_time } | ||
end | ||
""" | ||
When I run `rspec` | ||
Then the specs should all pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.