quintocumber 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/plugins/local_config.rb +16 -2
- data/lib/quintocumber/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 726f698292ad3a5d4c7d25e88b17f8bcf0722aa1
|
4
|
+
data.tar.gz: e69f876a94b3ff1d7478a580a965cfe11ea52215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75d59f44bd07e38037dc794c8381e542c6c96b298a3707acb5513223ada65a10e08b42a7ac575d7704b6fa5cede5888015167030e8c6f2c63200d0c72537f53a
|
7
|
+
data.tar.gz: b630b92b4ed682c821b7a85c37d2b889a2483e066c15c256ac6c3062f66f638489a541622d1f2ead0d7c833a0d438994d086ce3e2de0ff78d9c749047760bb38
|
data/README.md
CHANGED
@@ -20,6 +20,15 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
$ quintocumber
|
22
22
|
|
23
|
+
The following environment variables allow you to you to configure the appllication behavior:
|
24
|
+
|
25
|
+
| Key | Description |
|
26
|
+
| ------------- | ------------- |
|
27
|
+
| BROWSERSTACK_USERNAME | username for Browserstack account |
|
28
|
+
| BROWSERSTACK_ACCESS_KEY | access key for Browserstack account |
|
29
|
+
| SLACK_WEBHOOK_URL | webhook for slack notifications |
|
30
|
+
| REPORT_BUCKET | s3 bucket to save allure reports |
|
31
|
+
| PAGERDUTY_ROUTING_KEY | pager duty Events Api v2 integration key |
|
23
32
|
|
24
33
|
## Development
|
25
34
|
|
data/lib/plugins/local_config.rb
CHANGED
@@ -1,11 +1,25 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
def get_remote_capabilities(test_browser)
|
4
|
+
if test_browser.eql? 'chrome_headless'
|
5
|
+
return Selenium::WebDriver::Remote::Capabilities.chrome(
|
6
|
+
chromeOptions: { args: %w[headless disable-gpu] }
|
7
|
+
)
|
8
|
+
end
|
9
|
+
test_browser.to_sym
|
10
|
+
end
|
11
|
+
|
3
12
|
Capybara.register_driver :wip do |app|
|
4
13
|
test_browser = ENV['TEST_BROWSER'] || 'chrome'
|
5
14
|
selenium_server = ENV['SELENIUM_SERVER']
|
6
|
-
if
|
15
|
+
if selenium_server.nil?
|
7
16
|
Capybara::Selenium::Driver.new(app, browser: test_browser.to_sym)
|
8
17
|
else
|
9
|
-
Capybara::Selenium::Driver.new(
|
18
|
+
Capybara::Selenium::Driver.new(
|
19
|
+
app,
|
20
|
+
browser: :remote,
|
21
|
+
url: selenium_server,
|
22
|
+
desired_capabilities: get_remote_capabilities(test_browser)
|
23
|
+
)
|
10
24
|
end
|
11
25
|
end
|
data/lib/quintocumber/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quintocumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Diego Queiroz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -288,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
288
288
|
version: '0'
|
289
289
|
requirements: []
|
290
290
|
rubyforge_project:
|
291
|
-
rubygems_version: 2.5.1
|
291
|
+
rubygems_version: 2.5.2.1
|
292
292
|
signing_key:
|
293
293
|
specification_version: 4
|
294
294
|
summary: Cucumber on steroids
|