BlueBird v0.3.1 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

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

Initializes the handler when it is added to the GenEvent process

Link to this section Functions

Link to this function handle_event(arg1, state)
handle_event(event :: term, state :: term) ::
  {:ok, nil} |
  :remove_handler

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

Link to this function init(args)
init(args :: term) :: {:ok, nil}

Initializes the handler when it is added to the GenEvent process.