generic_test 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/generic_test +1 -1
- data/generic_test.gemspec +0 -4
- data/lib/generic_test/html_reporter.rb +0 -13
- data/lib/generic_test/setup.rb +1 -1
- data/lib/generic_test/version.rb +1 -1
- data/lib/generic_test.rb +0 -1
- metadata +1 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b1c9696f0ea835b89da12a7d1b95289955fc66097fa614009775acde222a5bd
|
4
|
+
data.tar.gz: 0ed1be3abda02a988dbd7befb16f4a6e725566e1a911e0c842268e371acc85f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f69e2f461c62fcd4be622afbc3754197c6731d8d650aeffd5727f80514237aa136d347a131f94c6ab889f1ae3a62d5e9aad010eeff917932eefc04bf2be7715e
|
7
|
+
data.tar.gz: ae3bd8b8c02e3d269b55916482098a6dd3b86ef8e05ebb7a1aecb117f09d0e19a0b49d8233f8b393832d357f153fcc4ca3f846a589c3865eb5b9fe24927e1950
|
data/exe/generic_test
CHANGED
@@ -16,7 +16,7 @@ class Exe < Thor
|
|
16
16
|
desc = ENV['PAGE_URL'].split('://').last.tr('/', '_')
|
17
17
|
junit_format = "-f RspecJunitFormatter --out logs/page_#{desc}.xml"
|
18
18
|
ENV['REPORT_PATH'] = "reports/#{desc}"
|
19
|
-
html_format = '--
|
19
|
+
html_format = '--format html --out report.html'
|
20
20
|
command = "rspec #{test_file_path} --format documentation --color #{junit_format} #{html_format}"
|
21
21
|
raise $CHILD_STATUS.to_s unless system command
|
22
22
|
end
|
data/generic_test.gemspec
CHANGED
@@ -28,9 +28,6 @@ Gem::Specification.new do |spec|
|
|
28
28
|
# Development dependencies are installed too since running external tests within gem
|
29
29
|
spec.add_development_dependency 'jekyll' # For hosting test website
|
30
30
|
spec.add_development_dependency 'rake'
|
31
|
-
spec.add_dependency 'rspec-legacy_formatters' # Needed for rspec_html_reporter after RSpec 3
|
32
|
-
# This doesn't work with latest Ruby version
|
33
|
-
#spec.add_dependency 'rspec_html_reporter' # Pretty HTML reports
|
34
31
|
spec.add_dependency 'rspec_junit_formatter' # Needed for nicer reporting of rspec for use in CI
|
35
32
|
spec.add_dependency 'simplecov' # Code coverage
|
36
33
|
|
@@ -40,6 +37,5 @@ Gem::Specification.new do |spec|
|
|
40
37
|
spec.add_dependency 'spellcheck' # Check for common spelling errors
|
41
38
|
spec.add_dependency 'thor' # Command line utility
|
42
39
|
spec.add_dependency 'watir' # UI interaction
|
43
|
-
spec.add_dependency 'webdrivers' # Download chromedriver automatically
|
44
40
|
spec.add_dependency 'yamler'
|
45
41
|
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Mock implementation of Bundler for use by generic_test where Bundler.root is needed
|
4
|
-
module Bundler
|
5
|
-
class << self
|
6
|
-
# Used just so that RSpecHtmlReporter does not thrown an error
|
7
|
-
def root
|
8
|
-
''
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
require 'rspec_html_reporter'
|
data/lib/generic_test/setup.rb
CHANGED
@@ -9,7 +9,7 @@ ENV['PAGE_NUM'] ||= '1'
|
|
9
9
|
browser_args = %w[--disable-popup-blocking --no-sandbox --disable-dev-shm-usage]
|
10
10
|
browser_args << '--headless' if ENV['HEADLESS'] == 'true'
|
11
11
|
|
12
|
-
GenericTest.browser = Watir::Browser.new :chrome, args: browser_args
|
12
|
+
GenericTest.browser = Watir::Browser.new :chrome, options: { args: browser_args }
|
13
13
|
|
14
14
|
raise 'PAGE_URL environment variable not set' unless ENV['PAGE_URL']
|
15
15
|
|
data/lib/generic_test/version.rb
CHANGED
data/lib/generic_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: generic_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Garratt
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rspec-legacy_formatters
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rspec_junit_formatter
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,20 +150,6 @@ dependencies:
|
|
164
150
|
- - ">="
|
165
151
|
- !ruby/object:Gem::Version
|
166
152
|
version: '0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: webdrivers
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - ">="
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
174
|
-
type: :runtime
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - ">="
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '0'
|
181
153
|
- !ruby/object:Gem::Dependency
|
182
154
|
name: yamler
|
183
155
|
requirement: !ruby/object:Gem::Requirement
|