results_keeper_rspec 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/results_keeper_rspec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13493f8995a21d5c64155dcea66c093c8a534247
|
4
|
+
data.tar.gz: 0c87e74790883e2afe40b2ad7791570941eb2eaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12e0f787e9e2d76c1d4476a3d1a4adbcef26908986324ab6d65a5392717fa16ed634a06eb904f096d9d8b0d2c9fe2f6868b5d1b54fffeceb04303f168d2039c8
|
7
|
+
data.tar.gz: a0d84baf93866e121da31b4b9600360ab5449b41aafd67594025d4a696e81edeca18e62d0d1dd619f9e33ff23b8cebcdade2ca2212edeab1d489c8b3c069116d
|
data/lib/results_keeper_rspec.rb
CHANGED
@@ -29,7 +29,7 @@ class ResultsKeeperRspec
|
|
29
29
|
|
30
30
|
def send_test(scenario)
|
31
31
|
test_duration = Time.now - scenario.metadata[:execution_result].started_at
|
32
|
-
@screenshot_path = save_screenshot(scenario) if ENV['
|
32
|
+
@screenshot_path = save_screenshot(scenario) if ENV['SEND_SCREENSHOTS']
|
33
33
|
status = scenario.exception ? 'failed' : 'passed'
|
34
34
|
scenario_error = scenario.exception.message if scenario.exception
|
35
35
|
run_path = "rspec #{scenario.location}"
|
@@ -72,7 +72,7 @@ class ResultsKeeperRspec
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def send_screenshot(screenshot_path)
|
75
|
-
if ENV['
|
75
|
+
if ENV['SEND_SCREENSHOTS']
|
76
76
|
t1 = Thread.new do
|
77
77
|
params = { project: @revision['project_id'], revision: @revision['revision_id'], test: @test['id'] }
|
78
78
|
RestClient.post("http://#{@host}:#{@port}/api/tests/upload_screenshot",
|