Skip to content

Commit

Permalink
Optimize processing CUCUMBER_PUBLISH_TOKEN around cucumber tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelien-reeves committed Jan 27, 2021
1 parent 68dded4 commit 9b750f2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions features/lib/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,12 @@
end

Around do |_, block|
original_publish_token = ENV['CUCUMBER_PUBLISH_TOKEN']
ENV.delete('CUCUMBER_PUBLISH_TOKEN')

original_publish_token = ENV.delete('CUCUMBER_PUBLISH_TOKEN')
original_coloring = Cucumber::Term::ANSIColor.coloring?

block.call

Cucumber::Term::ANSIColor.coloring = original_coloring

ENV['CUCUMBER_PUBLISH_TOKEN'] = original_publish_token
end

Expand Down

0 comments on commit 9b750f2

Please sign in to comment.