Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ravelinx22 committed Mar 20, 2020
2 parents 104ad6d + 97179d8 commit 9d837d3
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 13 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'kraken-mobile/steps/mobile/kraken_steps'
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
require 'calabash-android/management/app_installation'

AfterConfiguration do |_config|
AfterConfiguration do |config|
FeatureMemory.feature = nil
end

Before do |scenario|
scenario = scenario.scenario_outline if scenario.respond_to?(
:scenario_outline
)
scenario = scenario.scenario_outline if scenario.respond_to?(:scenario_outline)

feature = scenario.feature
if FeatureMemory.feature != feature || ENV['RESET_BETWEEN_SCENARIOS'] == '1'
Expand All @@ -16,6 +14,8 @@
else
log 'First scenario in feature - reinstalling apps'
end

ensure_app_installed
clear_app_data
FeatureMemory.feature = feature
FeatureMemory.invocation = 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
require 'kraken-mobile/runners/calabash/android/operations'
require 'kraken-mobile/hooks/mobile_operations'

Before do |scenario|
start_kraken_test_server_in_background scenario
@scenario_tags
start_test_kraken_server_in_background
end

After do |scenario|
shutdown_kraken_test_server scenario
uninstall_app_with_calabash
shutdown_test_kraken_server
end
2 changes: 1 addition & 1 deletion calabash-android-features-skeleton/support/env.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
require 'kraken-mobile/runners/calabash/android/cucumber'
require 'kraken-mobile/utils/mobile_cucumber'
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if ENV["ADB_DEVICE_ARG"].nil?
require 'kraken-mobile/steps/web/kraken_steps'
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
if ENV["ADB_DEVICE_ARG"].nil?
require 'kraken-mobile/hooks/web_operations'

Before do |scenario|
start_test_kraken_server_in_background(
scenario: scenario
)
end

After do |scenario|
shutdown_test_kraken_server(
scenario: scenario
)
end
end
2 changes: 1 addition & 1 deletion lib/kraken-mobile/helpers/kraken_faker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def save_key_value_in_dictionary(key:, value:)
# Generators
#-------------------------------
def generate_name
Faker::Name.name
Faker::Name.first_name
end

def generate_number
Expand Down
2 changes: 1 addition & 1 deletion lib/kraken-mobile/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module KrakenMobile
VERSION = '1.0.4'
VERSION = '1.0.5'
end

0 comments on commit 9d837d3

Please sign in to comment.