Class: Campa::Core::Test
- Inherits:
-
Object
- Object
- Campa::Core::Test
- Defined in:
- lib/campa/core/test.rb
Constant Summary collapse
- TEST_REGEXP =
/\Atest(_|-)(.+)$/i
Instance Method Summary collapse
- #call(*tests, env:) ⇒ Object
-
#initialize ⇒ Test
constructor
A new instance of Test.
Constructor Details
#initialize ⇒ Test
Returns a new instance of Test.
6 7 8 |
# File 'lib/campa/core/test.rb', line 6 def initialize @evaler = Campa::Evaler.new end |
Instance Method Details
#call(*tests, env:) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/campa/core/test.rb', line 10 def call(*tests, env:) summary = execute_all(tests, env) List.new( List.new(Symbol.new("success"), List.new(*summary[:success])), List.new(Symbol.new("failures"), List.new(*summary[:failures])) ) end |