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

handle_event(arg1, state)

Listen to events.

If the event is :suite_finished, trigger the generation of api blueprint file.

Ignore all other events.

init(args)

init function of this module. See https://hexdocs.pm/elixir/GenEvent.html#c:init/1.