ldp_testsuite_wrapper 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ldp_testsuite_wrapper/rspec.rb +11 -3
- data/lib/ldp_testsuite_wrapper/version.rb +1 -1
- 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: 1a5a8fc14d7519af9d68d4bc00c22f32006a887f
|
4
|
+
data.tar.gz: ce221783965954153e20de1b9394b419463b0156
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8ac3ffc66fe932f01e03c60c88e96cca43165b112bc807a2a52fd33668d8dbc3b3a7b6e8246f4a6669e1806e6e10b5a033a5e1b2db59d87d439c1a23a2f5b86
|
7
|
+
data.tar.gz: 5a6ae5dfda6f6cf84452324c7ccaa742f106c597d669217f76bd6805e08faf53858be9ead7218215bd3c8144d58f0a2b9358d4c8f539aa3b0eb74e7f18951a91
|
@@ -32,10 +32,18 @@ RSpec.shared_examples 'ldp test suite' do
|
|
32
32
|
|
33
33
|
before do
|
34
34
|
$response ||= {}
|
35
|
-
$response[test_suite_options] ||=
|
36
|
-
|
35
|
+
$response[test_suite_options] ||= begin
|
36
|
+
File.delete(report_path) if File.exist? report_path
|
37
|
+
status, stdout = ldp_testsuite.exec(test_suite_options.merge(server: url))
|
37
38
|
|
38
|
-
|
39
|
+
# exitstatus 0: OK
|
40
|
+
# exitstatus 1: hard error
|
41
|
+
# exitstatus 2+: test suite failure
|
42
|
+
raise stdout.string if status.exitstatus == 1
|
43
|
+
|
44
|
+
status
|
45
|
+
end
|
46
|
+
|
39
47
|
expect(File).to exist(report_path)
|
40
48
|
end
|
41
49
|
|