mini_autobot 1.1.1 → 1.1.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c46572e0a7623be341c8951c346094a53b03eec8
|
4
|
+
data.tar.gz: 749afd19dc500414d2be8053b6c3d456cfb8f3d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc7584e0d8f989b7148a0858e8b741290bc14ad79b01a39307406bfb18b43ca5cb0fa9e3cc333cb64788c0c37d762dd1c3575f66f13b0fc8bb6e0ff670fbbc07
|
7
|
+
data.tar.gz: f6a4eb16bd447f51ba153ab818f62bbe248f6517957a9f18a47283ac93ad4ac1dd2f6f8569690bc919299b970a2773ab4a53049769e115ac7604a5b4c22126b6
|
@@ -68,15 +68,28 @@ module MiniAutobot
|
|
68
68
|
desired_browser_string = nil
|
69
69
|
case connector
|
70
70
|
when /chrome/
|
71
|
-
desired_browser_string = 'Chrome'
|
71
|
+
desired_browser_string = 'Chrome (Automated)'
|
72
72
|
when /ff/
|
73
|
-
desired_browser_string = 'FF'
|
73
|
+
desired_browser_string = 'FF (Automated)'
|
74
74
|
when /firefox/
|
75
|
-
desired_browser_string = 'FF'
|
75
|
+
desired_browser_string = 'FF (Automated)'
|
76
76
|
when /ie11/
|
77
|
-
desired_browser_string = 'IE11'
|
77
|
+
desired_browser_string = 'IE11 (Automated)'
|
78
|
+
when /iphone/
|
79
|
+
desired_browser_string = 'iPhone (Automated)'
|
80
|
+
when /android/
|
81
|
+
desired_browser_string = 'Android (Automated)'
|
78
82
|
end
|
79
|
-
(1..@worksheet.num_cols).find { |col| @worksheet[1, col] == desired_browser_string }
|
83
|
+
column = (1..@worksheet.num_cols).find { |col| @worksheet[1, col] == desired_browser_string }
|
84
|
+
if column.nil?
|
85
|
+
create_column(desired_browser_string)
|
86
|
+
column = (1..@worksheet.num_cols).find { |col| @worksheet[1, col] == desired_browser_string }
|
87
|
+
end
|
88
|
+
column
|
89
|
+
end
|
90
|
+
|
91
|
+
def create_column(desired_browser_string)
|
92
|
+
@worksheet[1, @worksheet.num_cols] = desired_browser_string
|
80
93
|
end
|
81
94
|
|
82
95
|
def target_rows(key)
|
@@ -24,6 +24,9 @@ module MiniAutobot
|
|
24
24
|
if MiniAutobot.settings.google_sheets?
|
25
25
|
@static_run_command += " -g #{MiniAutobot.settings.google_sheet}"
|
26
26
|
end
|
27
|
+
if MiniAutobot.settings.feature_flips
|
28
|
+
@static_run_command += " -f #{MiniAutobot.settings.feature_flips}"
|
29
|
+
end
|
27
30
|
tap_reporter_path = MiniAutobot.gem_root.join('lib/tapout/custom_reporters/fancy_tap_reporter.rb')
|
28
31
|
@pipe_tap = "--tapy | tapout --no-color -r #{tap_reporter_path.to_s} fancytap"
|
29
32
|
end
|
data/lib/mini_autobot/version.rb
CHANGED
@@ -83,6 +83,11 @@ module Minitest
|
|
83
83
|
parser.on('-g', '--google-sheets SHEET', 'Report results to specified Google Sheets spreadsheet') do |value|
|
84
84
|
options[:google_sheets] = value
|
85
85
|
end
|
86
|
+
|
87
|
+
options[:feature_flips] = false
|
88
|
+
parser.on('-f', '--feature-flips FEATURE', 'Flip tests to run against a different feature set') do |value|
|
89
|
+
options[:feature_flips] = value
|
90
|
+
end
|
86
91
|
end
|
87
92
|
|
88
93
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_autobot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ripta Pasay
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-
|
14
|
+
date: 2016-08-17 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|