test_sweet 0.6.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0795adddad3df985085c9b4d19350526c1b9ec76
4
- data.tar.gz: 91d8d7788bd1631a25f27ec6e84d82c5e384a9cc
2
+ SHA256:
3
+ metadata.gz: 376b74658b2c2408d30c6fc406ac3d520589df410ae796cd49f89a86bfa36da3
4
+ data.tar.gz: 02bfe248c938ec1f8aa66e29bac1390c23d17159830349aaff6c6cd086f8bcba
5
5
  SHA512:
6
- metadata.gz: 035e0f6092199d9cac8310b770bbc13b7e0f635bea9ab0e38175468a87ebcd3ac8fac7feaaaa8537c817ecc5d85a9c472fba5781fb26561ff6640173a58d28cb
7
- data.tar.gz: 6764be585272640cd8775d4509277dc3dd93112ec42b23554fe2c9362d61f28a0298d0c4f423c0fbaccf0fdbada5c0cd5eac5971b6574477587baa98d1a9dfca
6
+ metadata.gz: 015bdc4b0b7af75bfda9e8022285d521450551373561ee121ad9eeb00574f21b41d2b007a103859f46e1cab4e6dfa3a0bc55b8a94531b356263a5af9af3147f2
7
+ data.tar.gz: f305ee9582fdcac2cbeb2dc88d09d8f157ccfd6b9c5f0f3e0d3105a8598679462323c532ec19b5963ae4bf58d27cbe2e666e34605b622b5e21674c8b552e657b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- test_sweet (0.1.0)
4
+ test_sweet (0.7.0)
5
5
  appium_lib (>= 7.0)
6
6
  cucumber (>= 2.0)
7
7
  motion-juxtapose (>= 0.3)
@@ -10,79 +10,89 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- appium_lib (7.0.0)
14
- awesome_print (~> 1.6)
15
- json (~> 1.8)
16
- nokogiri (~> 1.6.6)
17
- selenium-webdriver (~> 2.45)
18
- toml (~> 0.0)
19
- awesome_print (1.6.1)
20
- blankslate (2.1.2.4)
21
- builder (3.2.2)
22
- childprocess (0.5.6)
23
- ffi (~> 1.0, >= 1.0.11)
24
- cucumber (2.0.0)
13
+ appium_lib (10.3.1)
14
+ appium_lib_core (~> 3.1)
15
+ nokogiri (~> 1.8, >= 1.8.1)
16
+ tomlrb (~> 1.1)
17
+ appium_lib_core (3.1.3)
18
+ faye-websocket (~> 0.10.0)
19
+ selenium-webdriver (~> 3.14, >= 3.14.1)
20
+ backports (3.15.0)
21
+ builder (3.2.3)
22
+ childprocess (1.0.1)
23
+ rake (< 13.0)
24
+ cucumber (3.1.2)
25
25
  builder (>= 2.1.2)
26
- cucumber-core (~> 1.1.3)
27
- diff-lcs (>= 1.1.3)
28
- gherkin (~> 2.12)
26
+ cucumber-core (~> 3.2.0)
27
+ cucumber-expressions (~> 6.0.1)
28
+ cucumber-wire (~> 0.0.1)
29
+ diff-lcs (~> 1.3)
30
+ gherkin (~> 5.1.0)
29
31
  multi_json (>= 1.7.5, < 2.0)
30
32
  multi_test (>= 0.1.2)
31
- cucumber-core (1.1.3)
32
- gherkin (~> 2.12.0)
33
- diff-lcs (1.2.5)
34
- ffi (1.9.10)
35
- gherkin (2.12.2)
36
- multi_json (~> 1.3)
37
- haml (4.0.6)
33
+ cucumber-core (3.2.1)
34
+ backports (>= 3.8.0)
35
+ cucumber-tag_expressions (~> 1.1.0)
36
+ gherkin (~> 5.0)
37
+ cucumber-expressions (6.0.1)
38
+ cucumber-tag_expressions (1.1.1)
39
+ cucumber-wire (0.0.1)
40
+ diff-lcs (1.3)
41
+ eventmachine (1.2.7)
42
+ faye-websocket (0.10.9)
43
+ eventmachine (>= 0.12.0)
44
+ websocket-driver (>= 0.5.1)
45
+ gherkin (5.1.0)
46
+ haml (5.1.1)
47
+ temple (>= 0.8.0)
38
48
  tilt
39
- json (1.8.3)
40
- mini_portile (0.6.2)
41
- motion-juxtapose (0.3.1)
49
+ mini_portile2 (2.4.0)
50
+ motion-juxtapose (0.3.2)
42
51
  haml
43
52
  sinatra (~> 1.4)
44
- multi_json (1.11.2)
53
+ multi_json (1.13.1)
45
54
  multi_test (0.1.2)
46
- nokogiri (1.6.6.2)
47
- mini_portile (~> 0.6.0)
48
- parslet (1.5.0)
49
- blankslate (~> 2.0)
50
- rack (1.6.4)
51
- rack-protection (1.5.3)
55
+ nokogiri (1.10.3)
56
+ mini_portile2 (~> 2.4.0)
57
+ rack (1.6.11)
58
+ rack-protection (1.5.5)
52
59
  rack
53
60
  rake (10.4.2)
54
- rspec (3.3.0)
55
- rspec-core (~> 3.3.0)
56
- rspec-expectations (~> 3.3.0)
57
- rspec-mocks (~> 3.3.0)
58
- rspec-core (3.3.1)
59
- rspec-support (~> 3.3.0)
60
- rspec-expectations (3.3.0)
61
+ rspec (3.8.0)
62
+ rspec-core (~> 3.8.0)
63
+ rspec-expectations (~> 3.8.0)
64
+ rspec-mocks (~> 3.8.0)
65
+ rspec-core (3.8.1)
66
+ rspec-support (~> 3.8.0)
67
+ rspec-expectations (3.8.4)
61
68
  diff-lcs (>= 1.2.0, < 2.0)
62
- rspec-support (~> 3.3.0)
63
- rspec-mocks (3.3.1)
69
+ rspec-support (~> 3.8.0)
70
+ rspec-mocks (3.8.1)
64
71
  diff-lcs (>= 1.2.0, < 2.0)
65
- rspec-support (~> 3.3.0)
66
- rspec-support (3.3.0)
67
- rubyzip (1.1.7)
68
- selenium-webdriver (2.46.2)
69
- childprocess (~> 0.5)
70
- multi_json (~> 1.0)
71
- rubyzip (~> 1.0)
72
- websocket (~> 1.0)
73
- sinatra (1.4.6)
74
- rack (~> 1.4)
72
+ rspec-support (~> 3.8.0)
73
+ rspec-support (3.8.2)
74
+ rubyzip (1.2.3)
75
+ selenium-webdriver (3.142.3)
76
+ childprocess (>= 0.5, < 2.0)
77
+ rubyzip (~> 1.2, >= 1.2.2)
78
+ sinatra (1.4.8)
79
+ rack (~> 1.5)
75
80
  rack-protection (~> 1.4)
76
81
  tilt (>= 1.3, < 3)
77
- tilt (2.0.1)
78
- toml (0.1.2)
79
- parslet (~> 1.5.0)
80
- websocket (1.2.2)
82
+ temple (0.8.1)
83
+ tilt (2.0.9)
84
+ tomlrb (1.2.8)
85
+ websocket-driver (0.7.1)
86
+ websocket-extensions (>= 0.1.0)
87
+ websocket-extensions (0.1.4)
81
88
 
82
89
  PLATFORMS
83
90
  ruby
84
91
 
85
92
  DEPENDENCIES
86
- bundler (~> 1.9)
93
+ bundler (~> 2.0)
87
94
  rake (~> 10.0)
88
95
  test_sweet!
96
+
97
+ BUNDLED WITH
98
+ 2.0.2
data/README.md CHANGED
@@ -37,7 +37,7 @@ Finally you can also use the CLI runner to run your features not using rake
37
37
 
38
38
  ## Built in Steps
39
39
 
40
- ##### Screenshot comparisms using motion-juxtapose
40
+ ##### Screenshot comparisons using motion-juxtapose
41
41
  You can use this easily by simply providing a name for the screen, like so:
42
42
 
43
43
  ```Gherkin
@@ -14,6 +14,7 @@ namespace :test_sweet do
14
14
  ENV['test_sweet-platform'] = "Android"
15
15
  ENV['test_sweet-app'] = Motion::Project::App.config.apk_path
16
16
  else
17
+ ENV['test_sweet-automation'] = ENV['automation'] || "XCUITest"
17
18
  ENV['test_sweet-target'] = ENV['target'] || Motion::Project::App.config.deployment_target
18
19
  ENV['test_sweet-app'] = Motion::Project::App.config.app_bundle('iPhoneSimulator')
19
20
  ENV['test_sweet-platform'] = "iOS"
@@ -1,3 +1,8 @@
1
+ #
2
+ # Highly recommend that you do NOT edit this file. Create your own my_app_steps.rb file and/or
3
+ # my_core_steps.rb files under features/step_definitions, and override these steps if required.
4
+ # If you create steps that you think belong here, feel free to open up a pull request on test_sweet.
5
+ #
1
6
  Given(/^I wait for (\d+) seconds$/) do |seconds|
2
7
  sleep seconds.to_i
3
8
  end
@@ -1,6 +1,5 @@
1
1
  require 'rspec'
2
2
  require 'appium_lib'
3
- require 'cucumber/ast'
4
3
  require 'motion-juxtapose'
5
4
  require "test_sweet/core_steps"
6
5
  require "test_sweet/screenshotting_steps"
@@ -12,6 +11,7 @@ class AppiumWorld; end
12
11
 
13
12
  caps = {
14
13
  caps: {
14
+ automationName: ENV['test_sweet-automation'],
15
15
  platformName: ENV['test_sweet-platform'],
16
16
  platformVersion: ENV['test_sweet-target'],
17
17
  app: ENV['test_sweet-app'],
@@ -19,7 +19,7 @@ caps = {
19
19
  noReset: ENV['test_sweet-no-reset']
20
20
  }
21
21
  }
22
- Appium::Driver.new(caps)
22
+ Appium::Driver.new(caps, true)
23
23
 
24
24
  Appium.promote_appium_methods AppiumWorld
25
25
 
@@ -1,3 +1,3 @@
1
1
  class TestSweet
2
- VERSION = "0.6.2"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -1,3 +1,7 @@
1
+ #
2
+ # This file is generated, and mostly useful for ensuring your test_sweet environment is
3
+ # set up properly. After you have written your own features, feel free to delete.
4
+ #
1
5
  Feature: Running a test
2
6
  As a mobile developer
3
7
  I want to have a sample feature file
@@ -1,3 +1,7 @@
1
+ #
2
+ # This file is generated, and mostly useful for ensuring your test_sweet environment is
3
+ # set up properly. After you have written your own steps, feel free to delete.
4
+ #
1
5
  Given(/^I touch the screen$/) do
2
6
  step %~I touch at position 160,100~
3
7
  end
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency "motion-juxtapose", ">= 0.3"
24
24
  spec.add_dependency "cucumber", ">= 2.0"
25
25
  spec.add_dependency "rspec", ">= 3.3.0"
26
- spec.add_development_dependency "bundler", "~> 1.9"
26
+ spec.add_development_dependency "bundler", "~> 2.0"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_sweet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Larrabee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-24 00:00:00.000000000 Z
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appium_lib
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.9'
75
+ version: '2.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.9'
82
+ version: '2.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.4.5.1
149
+ rubygems_version: 2.7.7
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Integration testing your rubymotion applications the simple and sweet way.