Sha256: 424e8a8c69c63dfdc6265a203467fd43a120a6764cc0a59ca723f2c6f5bb7709
Contents?: true
Size: 719 Bytes
Versions: 26
Compression:
Stored size: 719 Bytes
Contents
require 'calabash-android/management/app_installation' AfterConfiguration do |config| FeatureMemory.feature = nil end Before do |scenario| scenario = scenario.scenario_outline if scenario.respond_to?(:scenario_outline) feature = scenario.feature if FeatureMemory.feature != feature || ENV['RESET_BETWEEN_SCENARIOS'] == '1' if ENV['RESET_BETWEEN_SCENARIOS'] == '1' log 'New scenario - reinstalling apps' else log 'First scenario in feature - reinstalling apps' end ensure_app_installed clear_app_data FeatureMemory.feature = feature FeatureMemory.invocation = 1 else FeatureMemory.invocation += 1 end end FeatureMemory = Struct.new(:feature, :invocation).new
Version data entries
26 entries across 26 versions & 2 rubygems