test_sweet 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +16 -0
- data/lib/tasks/test_sweet.rb +1 -1
- data/lib/test_sweet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bfa8b41de928cecfc399415757f91a2cb0e9db4
|
4
|
+
data.tar.gz: 58fa274a8568d8667f4f47fac0e1019d4c923c0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d448b1a0773bb4351f5d6e1cf932642e67499fb4194cb9e848ed30685c7fa41fc173e2344c423006cd4481aa7e2628cb699077f812e5bd14b5950820b7aac253
|
7
|
+
data.tar.gz: ff4285a04714a1fd1a4f1b55317c65276d59ecd8d09749ef041f105df149ece2c1b9ecd3cf9a0f668cf70b71fe6dce4a40048f82133556f2d1ea801fa014177e
|
data/README.md
CHANGED
@@ -34,6 +34,22 @@ Or if you prefer to pre-build your app with some setup on your side, you can jus
|
|
34
34
|
Finally you can also use the CLI runner to run your features not using rake
|
35
35
|
|
36
36
|
$ test_sweet
|
37
|
+
|
38
|
+
## Built in Steps
|
39
|
+
|
40
|
+
##### Screenshot comparisms using motion-juxtapose
|
41
|
+
You can use this easily by simply providing a name for the screen, like so:
|
42
|
+
|
43
|
+
```Gherkin
|
44
|
+
# The simplest way, simply give the screen name that should be used to compare against
|
45
|
+
Then the screen should match "the login screen"
|
46
|
+
|
47
|
+
# If you need to provide a fuzz_factor to motion-juxtapose you can use this instead
|
48
|
+
Then the screen should match "the login screen" with a fuzz factor of 1
|
49
|
+
|
50
|
+
# Finally if you also want it to try less times by default to increase speed of your tests
|
51
|
+
Then the screen should match "the login screen" with a fuzz factor of 1 with 5 max attempts
|
52
|
+
```
|
37
53
|
|
38
54
|
## Contributing
|
39
55
|
|
data/lib/tasks/test_sweet.rb
CHANGED
@@ -14,7 +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-target'] = Motion::Project::App.config.deployment_target
|
17
|
+
ENV['test_sweet-target'] = ENV['target'] || Motion::Project::App.config.deployment_target
|
18
18
|
ENV['test_sweet-app'] = Motion::Project::App.config.app_bundle('iPhoneSimulator')
|
19
19
|
ENV['test_sweet-platform'] = "iOS"
|
20
20
|
ENV['test_sweet-device-name'] = Motion::Project::App.config.device_family_string(
|
data/lib/test_sweet/version.rb
CHANGED
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.5.
|
4
|
+
version: 0.5.2
|
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-09-
|
11
|
+
date: 2015-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appium_lib
|