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 +5 -5
- data/Gemfile.lock +67 -57
- data/README.md +1 -1
- data/lib/tasks/test_sweet.rb +1 -0
- data/lib/test_sweet/core_steps.rb +5 -0
- data/lib/test_sweet/cucumber_env.rb +2 -2
- data/lib/test_sweet/version.rb +1 -1
- data/templates/features/example.feature +4 -0
- data/templates/features/step_definitions/example_steps.rb +4 -0
- data/test_sweet.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 376b74658b2c2408d30c6fc406ac3d520589df410ae796cd49f89a86bfa36da3
|
4
|
+
data.tar.gz: 02bfe248c938ec1f8aa66e29bac1390c23d17159830349aaff6c6cd086f8bcba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 015bdc4b0b7af75bfda9e8022285d521450551373561ee121ad9eeb00574f21b41d2b007a103859f46e1cab4e6dfa3a0bc55b8a94531b356263a5af9af3147f2
|
7
|
+
data.tar.gz: f305ee9582fdcac2cbeb2dc88d09d8f157ccfd6b9c5f0f3e0d3105a8598679462323c532ec19b5963ae4bf58d27cbe2e666e34605b622b5e21674c8b552e657b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
test_sweet (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 (
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
builder (3.2.
|
22
|
-
childprocess (0.
|
23
|
-
|
24
|
-
cucumber (
|
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 (~>
|
27
|
-
|
28
|
-
|
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 (
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
|
-
|
40
|
-
|
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.
|
53
|
+
multi_json (1.13.1)
|
45
54
|
multi_test (0.1.2)
|
46
|
-
nokogiri (1.
|
47
|
-
|
48
|
-
|
49
|
-
|
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.
|
55
|
-
rspec-core (~> 3.
|
56
|
-
rspec-expectations (~> 3.
|
57
|
-
rspec-mocks (~> 3.
|
58
|
-
rspec-core (3.
|
59
|
-
rspec-support (~> 3.
|
60
|
-
rspec-expectations (3.
|
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.
|
63
|
-
rspec-mocks (3.
|
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.
|
66
|
-
rspec-support (3.
|
67
|
-
rubyzip (1.
|
68
|
-
selenium-webdriver (
|
69
|
-
childprocess (
|
70
|
-
|
71
|
-
|
72
|
-
|
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
|
-
|
78
|
-
|
79
|
-
|
80
|
-
websocket (
|
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 (~>
|
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
|
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
|
data/lib/tasks/test_sweet.rb
CHANGED
@@ -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
|
|
data/lib/test_sweet/version.rb
CHANGED
@@ -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
|
data/test_sweet.gemspec
CHANGED
@@ -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", "~>
|
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.
|
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:
|
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: '
|
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: '
|
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.
|
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.
|