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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c943b1ae9a16c3e296758b3428647ece7c40715d12dc202b5cb67236726733b
4
- data.tar.gz: 1f15abe4bf28470dab4e5bc43f87d1ff98753bc64f0a2ea14ed683af06ebee5d
3
+ metadata.gz: 9a48e69d3bfc0bb860b8f9e38901cf2d89ad4af60197fc67de4d498666d3d888
4
+ data.tar.gz: 47c918e9d6df382776af9524df32d3b4489fddf85a25da418b3e27ecb8dc48ce
5
5
  SHA512:
6
- metadata.gz: 79640706abb897c8f6455963aec14287856facc7c41d6297c4d3764605c52893e939acd7f29576930588b9494e6aa18d92bccb25a167886eb94b7e3cad03d76e
7
- data.tar.gz: 16aa633663f6eb0e6006dd3dd8004a2d9816b1ab6590244cc6bd2c53b6e4b42e07b348843f2b20e52549b88a7627420d3163c5286dc88d199cf0863db5ded596
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 :make_reference => :environment do
9
- WatchDoge::Regression::Manager.run_all_scenarios :make_reference
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 :regression => :environment do
13
- WatchDoge::Regression::Manager.run_all_scenarios :regression
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 :make_reference
60
+ when :capture
61
61
  puts " -> make reference images on worker #{@worker}"
62
62
  @worker.screenshot.save reference_image
63
- when :regression
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
@@ -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(:make_reference)
5
- # WatchDoge::Regression.run_all_scenarios(:regression)
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:make_reference` and `rake watchdoge:regression` while in Rails
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
@@ -1,4 +1,4 @@
1
1
  # Version of WatchDoge
2
2
  module WatchDoge
3
- VERSION = '0.1.18'
3
+ VERSION = '0.1.19'
4
4
  end
data/watchdoge.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'watchdoge'
3
- s.version = '0.1.18'
3
+ s.version = '0.1.19'
4
4
  s.date = '2019-07-22'
5
5
  s.summary = "dogi"
6
6
  s.description = "WatchDoge is Ruby on Rails friendly frontend regression test tool"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watchdoge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shen Lee