struct

Spectator::TestWrapper

Inherits Struct < Value < Object

Stores information about a end-user test. Used to instantiate tests and run them.

Constructors

new(description : String | Nil, source : Source, test : SpectatorTest, runner : TestMethod)

Creates a wrapper for the test.

Source

Instance methods

around_hook(context : TestContext)
Source
call(method : TestMethod) : Nil
Source
call(method, *args) : Nil
Source
description

Description the user provided for the test.

Source
description?
Source
source

Location of the test in source code.

Source