results_keeper_rspec 0.0.2 → 0.0.3
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 +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5860ce352ce9a87317b8bbeadb08396c02fb3dc9
|
4
|
+
data.tar.gz: e584da173faf1d1ab3f631177c0fb6ea8f78e5a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee9ddcafe3d4823699043a6dc3664f893b257cf38b3a0c209905260ec8038877da6f77cc8e9c7210719689af2f47849ec40eeea491c7a2db1a19774f6a1ada98
|
7
|
+
data.tar.gz: 2f436010241e21c804aa492661e5aa8002abf3279d41a5cbd87fe21f96521cfac452d507770488b36105ae0c78a1399cf6c1a3a469004429df6164224fbfc9e9
|
data/lib/results_keeper_rspec.rb
CHANGED
@@ -28,7 +28,7 @@ class ResultsKeeperRspec
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def send_test(scenario)
|
31
|
-
@screenshot_path = save_screenshot(scenario) if ENV['
|
31
|
+
@screenshot_path = save_screenshot(scenario) if ENV['SEND_SCREENSHOTS']
|
32
32
|
status = scenario.exception ? 'failed' : 'passed'
|
33
33
|
scenario_error = scenario.exception.message if scenario.exception
|
34
34
|
run_path = "rspec #{scenario.location}"
|
@@ -70,14 +70,14 @@ class ResultsKeeperRspec
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def send_screenshot(screenshot_path)
|
73
|
-
if ENV['
|
73
|
+
if ENV['SEND_SCREENSHOTS']
|
74
74
|
t1 = Thread.new do
|
75
75
|
params = { project: @revision['project_id'], revision: @revision['revision_id'], test: @test['id'] }
|
76
76
|
RestClient.post("http://#{@host}:#{@port}/api/tests/upload_screenshot",
|
77
77
|
:name_of_file_param => File.new(screenshot_path), :body => params)
|
78
|
+
File.delete(screenshot_path)
|
78
79
|
end
|
79
80
|
t1.join
|
80
|
-
File.delete(screenshot_path)
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: results_keeper_rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Kozakov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flickraw
|