forked from spree/spree
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure that @Stop is used only if not running with profile CI
- Loading branch information
Showing
1 changed file
with
9 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
After do |scenario| | ||
if scenario.failed? && scenario.source_tag_names.include?("@wip") && scenario.source_tag_names.include?("@stop") | ||
puts "Scenario failed. We're in @wip mode, so I've stopped here." << | ||
"You can inspect the issue and leave the console after that." | ||
require 'irb' | ||
require 'irb/completion' | ||
ARGV.clear | ||
IRB.start | ||
unless ENV['CI'] | ||
if scenario.failed? && scenario.source_tag_names.include?("@wip") && scenario.source_tag_names.include?("@stop") | ||
puts "Scenario failed. We're in @wip mode, so I've stopped here." << | ||
"You can inspect the issue and leave the console after that." | ||
require 'irb' | ||
require 'irb/completion' | ||
ARGV.clear | ||
IRB.start | ||
end | ||
end | ||
end |