BlueBird v0.1.3 BlueBird.Formatter
BlueBird.Formatter
has to be another ExUnit formatter.
This module will catch the :suite_finished
event (fired by ExUnit
). Afterwards it will trigger
the generation of the api blueprint file.
Usage: In your test_helper.exs
add BlueBird.Formatter
as formatter.
It shoud look like: ExUnit.start(formatters: [ExUnit.CLIFormatter, BlueBird.Formatter])
.
Summary
Functions
Listen to events
init
function of this module.
See https://hexdocs.pm/elixir/GenEvent.html#c:init/1
Functions
Listen to events.
If the event is :suite_finished
, trigger the generation of api blueprint file.
Ignore all other events.