class Kapnismology::SmokeTestCollection
This class maintains the collection of all the smoke tests found in the system
Public Class Methods
add_smoke_test(klass)
click to toggle source
# File lib/kapnismology/smoke_test_collection.rb, line 7 def add_smoke_test(klass) smoke_tests << klass end
evaluations(allowed_tags = [SmokeTest::RUNTIME_TAG], blacklist = [])
click to toggle source
# File lib/kapnismology/smoke_test_collection.rb, line 15 def evaluations(allowed_tags = [SmokeTest::RUNTIME_TAG], blacklist = []) # We will run any class which categories are in the allowed list # and not blacklisted runable_tests = smoke_tests.select do |test| klass_name = test.name.split('::').last !blacklist.include?(klass_name) && !(allowed_tags & test.tags).empty? end EvaluationCollection.new(runable_tests) end
smoke_tests()
click to toggle source
# File lib/kapnismology/smoke_test_collection.rb, line 11 def smoke_tests @smoke_tests ||= [] end