earl-report 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/earl_report.rb +7 -5
- 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: c039e1ef5a3ead1a7d0656a638b364720ba0bf6e
|
|
4
|
+
data.tar.gz: ab8fba7475935a6ec3e0b2a3219357a1ab02b2aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0af9ec4b7cde8164c01316cc12bdd07d5664cc51462900d813d264c681d5535f1308d16a5b4ce43ad6e3940a34e09701e2eaa9fde2ca967a3cfcca9191341f94
|
|
7
|
+
data.tar.gz: d9515a76702a3ea1524373c23e68ca4abcbc3dc2a65cc956e13ab8db9243961c56dec915ec1c0483dc7bf881e144e3d3c94a8c2a806724c23f14534030253f8f
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.3
|
data/lib/earl_report.rb
CHANGED
|
@@ -342,9 +342,7 @@ class EarlReport
|
|
|
342
342
|
# Map ids and values to array entries
|
|
343
343
|
ts_info.keys.sort.map do |id|
|
|
344
344
|
info = ts_info[id]
|
|
345
|
-
subject = {}
|
|
346
|
-
subject["@id"] = id
|
|
347
|
-
subject["@type"] = %w(earl:TestSubject doap:Project)
|
|
345
|
+
subject = {"@id" => id, "@type" => %w(earl:TestSubject doap:Project)}
|
|
348
346
|
%w(name developer doapDesc homepage language).each do |prop|
|
|
349
347
|
subject[prop] = info[prop] if info[prop]
|
|
350
348
|
end
|
|
@@ -446,11 +444,15 @@ class EarlReport
|
|
|
446
444
|
$stderr.puts "No result found for #{solution[:test]}: #{solution.inspect}"
|
|
447
445
|
next
|
|
448
446
|
end
|
|
447
|
+
s unless solution[:outcome]
|
|
448
|
+
$stderr.puts "No test subject found for #{solution[:test]}: #{solution.inspect}"
|
|
449
|
+
next
|
|
450
|
+
end
|
|
449
451
|
subject = solution[:subject].to_s
|
|
450
452
|
found_solutions[subject] = true
|
|
451
453
|
result_index = subjects.index(subject)
|
|
452
|
-
unless
|
|
453
|
-
$stderr.puts "No test subject found for #{
|
|
454
|
+
unless result_index
|
|
455
|
+
$stderr.puts "No test result subject found for #{subject}: #{solution.inspect}"
|
|
454
456
|
next
|
|
455
457
|
end
|
|
456
458
|
ta_hash = tc['assertions'][result_index]
|