4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/kapnismology/rake_task.rb', line 4
def output(allowed_tags = [SmokeTest::RUNTIME_TAG], blacklist = [])
puts "Running smoke test for codebase revision #{ApplicationInformation.instance.codebase_revision}"
evaluations = SmokeTestCollection.evaluations(allowed_tags, blacklist)
puts
puts
evaluations.each do |evaluation|
puts evaluation.to_s
puts
end
if evaluations.passed?
puts Terminal.green('All smoke tests passed successfully!')
else
abort Terminal.red('We have some failures in our smoke tests')
end
end
|