Skip to content

Commit

Permalink
Temporary use local copy of Aruba
Browse files Browse the repository at this point in the history
Aruba failures for versions >= 0.7.0 seem to be fixed by removing
the @debug Cucumber tags. I am not sure what is the expected behaviour
of these tags, but Aruba did undergo quite a few changes between
v0.6.2 and v0.7.0 (refactoring and features).

Using a local copy of Aruba allows to use 'git bisect' to discover
exactly what change in Aruba started causing failures.
From there is should be easier to figure out if the failure is
related of a change in the @debug behaviour, a mistake in how
we use it, or an Aruba bug (unlikely, but still possible).

See apiaryio#26

Usage:

    # Clone Aruba in ../aruba
    git clone [email protected]:cucumber/aruba.git ../aruba

    # In order to test a specific version of Aruba, use tags:
    cd ../aruba
    git checkout v0.6.2

    cd ../dredd-hooks-ruby
    bundle install && rake cucumber # is 'good' (green) with v0.6.2

    # Speed up the discovery with 'git bisect':
    cd ../aruba
    git bisect start
    git bisect bad v0.7.0
    git bisect good v0.6.2

    # Repeat:
    cd ../dredd-hooks-ruby
    bundle install && rake cucumber # the features do pass or fail
    cd ../aruba
    git bisect good # resp. 'bad' if the DreddHooks features did fail

    # Until bisect stops pointing at the suspicious commit.
    git bisect reset # stop bisecting and restores everthing as it was
  • Loading branch information
gonzalo-bulnes committed Jan 8, 2017
1 parent 6056fca commit bb041ed
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in dredd_worker.gemspec
gem 'aruba', path: '../aruba'
gemspec
36 changes: 20 additions & 16 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
PATH
remote: ../aruba
specs:
aruba (0.6.2)
childprocess (>= 0.3.6)
cucumber (>= 1.1.1)
rspec-expectations (>= 2.7.0)

PATH
remote: .
specs:
Expand All @@ -6,10 +14,6 @@ PATH
GEM
remote: https://rubygems.org/
specs:
aruba (0.6.2)
childprocess (>= 0.3.6)
cucumber (>= 1.1.1)
rspec-expectations (>= 2.7.0)
builder (3.2.2)
childprocess (0.5.9)
ffi (~> 1.0, >= 1.0.11)
Expand All @@ -33,19 +37,19 @@ GEM
rack-protection (1.5.3)
rack
rake (10.5.0)
rspec (3.5.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
rspec-mocks (~> 3.5.0)
rspec-core (3.5.4)
rspec-support (~> 3.5.0)
rspec-expectations (3.5.0)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.4)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-mocks (3.5.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-support (3.5.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
sinatra (1.4.7)
rack (~> 1.5)
rack-protection (~> 1.4)
Expand All @@ -56,7 +60,7 @@ PLATFORMS
ruby

DEPENDENCIES
aruba (~> 0.6.2)
aruba!
dredd_hooks!
rake (~> 10.0)
rspec (~> 3.0)
Expand Down
2 changes: 1 addition & 1 deletion dredd_hooks.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
spec.files = Dir["{bin,doc,lib}/**/*", "CHANGELOG.md", "Gemfile", "LICENSE.txt", "Rakefile", "README.md" ]
spec.test_files = Dir["{features,spec}/**/*"]

spec.add_development_dependency "aruba", "~> 0.6.2"
#spec.add_development_dependency "aruba", "~> 0.7.0"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "sinatra", "~> 1.4.5"
Expand Down

0 comments on commit bb041ed

Please sign in to comment.