watchdoge 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/watchdoge/rails/railtie.rb +4 -4
- data/lib/watchdoge/regression/dsl.rb +2 -2
- data/lib/watchdoge/regression.rb +3 -3
- data/lib/watchdoge/version.rb +1 -1
- data/watchdoge.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a48e69d3bfc0bb860b8f9e38901cf2d89ad4af60197fc67de4d498666d3d888
|
4
|
+
data.tar.gz: 47c918e9d6df382776af9524df32d3b4489fddf85a25da418b3e27ecb8dc48ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27d0358914b9244c7712ba0d964dacad11e987f2c8e2c672052f2506715b68951e95b3a67adfbd42a1234791fd69381453bd032caedb61192affed6577c9d1d7
|
7
|
+
data.tar.gz: a8f71d6e1315494b8c849edc7fb96a1e5efc6f863d66f943568c7b2c1eef32f848210b696bcb3ba28c40a3eec848f3d345d7dbeefe1dbd1711a67c86f1d37140
|
@@ -5,12 +5,12 @@ module WatchDoge
|
|
5
5
|
rake_tasks do
|
6
6
|
namespace :watchdoge do
|
7
7
|
desc "generating reference images"
|
8
|
-
task :
|
9
|
-
WatchDoge::Regression::Manager.run_all_scenarios :
|
8
|
+
task :capture => :environment do
|
9
|
+
WatchDoge::Regression::Manager.run_all_scenarios :capture
|
10
10
|
end
|
11
11
|
desc "scrap screenshots and compare with reference images"
|
12
|
-
task :
|
13
|
-
WatchDoge::Regression::Manager.run_all_scenarios :
|
12
|
+
task :test => :environment do
|
13
|
+
WatchDoge::Regression::Manager.run_all_scenarios :test
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
@@ -57,10 +57,10 @@ module WatchDoge
|
|
57
57
|
|
58
58
|
@worker.resize_by_viewport(@view_port) do
|
59
59
|
case @regression_flag
|
60
|
-
when :
|
60
|
+
when :capture
|
61
61
|
puts " -> make reference images on worker #{@worker}"
|
62
62
|
@worker.screenshot.save reference_image
|
63
|
-
when :
|
63
|
+
when :test
|
64
64
|
puts " -> compare reference images on worker #{@worker}"
|
65
65
|
reference_image = WatchDoge::Regression::Utils.load_png self.reference_image
|
66
66
|
input_image = WatchDoge::Regression::Utils.load_png @worker.screenshot.png
|
data/lib/watchdoge/regression.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Regression testing realtime screenshot with reference images for scenario described by DSL
|
2
2
|
|
3
3
|
# usage:
|
4
|
-
# WatchDoge::Regression.run_all_scenarios(:
|
5
|
-
# WatchDoge::Regression.run_all_scenarios(:
|
4
|
+
# WatchDoge::Regression.run_all_scenarios(:capture)
|
5
|
+
# WatchDoge::Regression.run_all_scenarios(:test)
|
6
6
|
|
7
7
|
# spec:
|
8
|
-
# 1. should have rake tasks `rake watchdoge:
|
8
|
+
# 1. should have rake tasks `rake watchdoge:capture` and `rake watchdoge:test` while in Rails
|
9
9
|
# 2. able to generate scenario template by Rails generator
|
10
10
|
|
11
11
|
# todo: support run single scenario
|
data/lib/watchdoge/version.rb
CHANGED
data/watchdoge.gemspec
CHANGED