File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 44
44
yaml = YAML . load_stream ( File . read ( test_file ) )
45
45
46
46
# Create the test object:
47
+ requires = yaml . map . with_index { |a , i | yaml . delete_at ( i ) if a . keys . first == 'requires' } . compact
47
48
setup = yaml . map . with_index { |a , i | yaml . delete_at ( i ) if a . keys . first == 'setup' } . compact . first &.[]( 'setup' )
48
49
teardown = yaml . map . with_index { |a , i | yaml . delete_at ( i ) if a . keys . first == 'teardown' } . compact . first
49
50
62
63
LOGGER . debug e
63
64
end
64
65
65
- puts "--- 🧪 Tests: #{ @tests_count } | Passed: #{ @tests_count - @errors . count } | Failed: #{ @errors . count } "
66
- puts "--- ⏲ Elapsed time: #{ Time . at ( Time . now - starttime ) . utc . strftime ( "%H:%M:%S" ) } "
67
66
unless @errors . empty?
68
67
puts "+++ ❌ Errors/Failures: #{ @errors . count } "
69
68
@errors . map do |error |
73
72
end
74
73
exit 1
75
74
end
75
+ puts "--- 🧪 Tests: #{ @tests_count } | Passed: #{ @tests_count - @errors . count } | Failed: #{ @errors . count } "
76
+ puts "--- ⏲ Elapsed time: #{ Time . at ( Time . now - starttime ) . utc . strftime ( "%H:%M:%S" ) } "
You can’t perform that action at this time.
0 commit comments