luciole
Types
Functions
pub fn after(name: String, body: fn() -> Chainable(a)) -> Test
after
declares what will run once
after the last test of the suite.
pub fn after_each(
name: String,
body: fn() -> Chainable(a),
) -> Test
after_each
declares what will run
after each test of the suite.
pub fn before(name: String, body: fn() -> Chainable(a)) -> Test
before
declares what will run once
before the first test of the suite.
pub fn before_each(
name: String,
body: fn() -> Chainable(a),
) -> Test
before_each
declares what will run
before each test of the suite.
pub fn describe(name: String, suite: List(Test)) -> Test
describe
declares a group of tests (a test suite) with a title.
This suite will run if there is no only
blocks at the same level,
or if it contains an only
block itself.
pub fn describe_only(name: String, suite: List(Test)) -> Test
describe_only
declares a group of tests (a test suite) with a title.
This suite will necessarily run.
Other blocks in the same suite that aren’t only
won’t run.
pub fn describe_skip(name: String, suite: List(Test)) -> Test
describe_skip
declares a group of tests (a test suite) with a title.
This suite won’t run.
pub fn it(name: String, body: fn() -> Chainable(a)) -> Test
it
declares a single test with a title.
It will run if there is no only
blocks at the same level in its suite.
pub fn it_only(name: String, body: fn() -> Chainable(a)) -> Test
it_only
declares a test with a title.
It will necessarily run.
Other blocks in the same suite that aren’t only
won’t run.
pub fn it_skip(name: String, body: fn() -> Chainable(a)) -> Test
it_skip
declares a single test with a title.
It won’t run.