BlueBird v0.4.0 BlueBird.Formatter

Catches the :suite_finished event fired by ExUnit and triggers the generation of the api blueprint file.

BlueBird.Formatter has to be used as an ExUnit formatter.

Usage

Add BlueBird.Formatter as a formatter in test_helper.exs. Don't forget to add BlueBird.start/0 as well.

BlueBird.start()
ExUnit.start(formatters: [ExUnit.CLIFormatter, BlueBird.Formatter])

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Event listener that triggers the generation of the api blueprint file when receiving a :suite_finished message by ExUnit

Initializes the handler

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

handle_cast(msg, state)
handle_cast(request :: term(), state :: term()) :: {:noreply, nil}

Event listener that triggers the generation of the api blueprint file when receiving a :suite_finished message by ExUnit.

Link to this function

init(config)
init(args :: term()) :: {:ok, nil}

Initializes the handler.