testscript_engine 0.0.0 → 0.0.1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45459e02c0683f9aad8a5ab7013e95f225ad19c5bdaf75cb1914c64db09743b7
|
4
|
+
data.tar.gz: 475d8d9141e76022f2fc67575c50999bd3d1a9e4601a4370edb40f346a70e4fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfeeb1b3343e76341c88870b907bd71ca3b56da01d9922ec9cc19aa9f9d2d97ed3789e9c532027bbd43b8f2ee76afda22e875ea5a762bd7a975ee78b66f39b23
|
7
|
+
data.tar.gz: ef9d602b60fa847b3014dd73e407d34dadc92073d4000e63febc558ad6cd37e3e4bfa9588d1947a8be7c7145210a5beae848cafbce99105bd94d9bfc1440a54b
|
@@ -101,8 +101,12 @@ class TestScriptRunnable
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def handle_actions(actions, end_on_fail)
|
104
|
-
return abort_test(actions) if @ended
|
105
104
|
@modify_report = true
|
105
|
+
if @ended
|
106
|
+
abort_test(actions)
|
107
|
+
@modify_report = false
|
108
|
+
return
|
109
|
+
end
|
106
110
|
current_action = 0
|
107
111
|
|
108
112
|
begin
|
@@ -122,6 +126,7 @@ class TestScriptRunnable
|
|
122
126
|
@ended = true
|
123
127
|
fail(:eval_assert_result, ae.details)
|
124
128
|
cascade_skips_with_message(actions, current_action) unless current_action == actions.length
|
129
|
+
@modify_report = false
|
125
130
|
return
|
126
131
|
else
|
127
132
|
fail(:eval_assert_result, ae.details)
|
data/lib/testscript_engine.rb
CHANGED
@@ -126,7 +126,9 @@ class TestScriptEngine
|
|
126
126
|
FileUtils.mkdir_p report_directory
|
127
127
|
|
128
128
|
reports.each do |_, report|
|
129
|
-
|
129
|
+
report_name = report.name.downcase.split(' ')[1...].join('_')
|
130
|
+
report_name = report.name.downcase.split('_')[0...].join('_') if report_name == ""
|
131
|
+
File.open("#{report_directory}/#{report_name}.json", 'w') do |f|
|
130
132
|
f.write(report.to_json)
|
131
133
|
end
|
132
134
|
end
|