eproxus/unite

Pretty EUnit test formatters

Erlang

72

120 commits

updated Sep 27, 2023

See the code

README

unite

hex.pm version hex.pm license erlang versions hex.pm license

Pretty EUnit test formatters

Example output

Installation & Usage

Add Unite as a dependency in your rebar.config and enable the Unite formatter:

{profiles, [
    {test, [
        {deps, [unite]},
        {eunit_opts, [no_tty, {report, {unite_compact, []}}]}
    ]}
]}.

Using no_tty is important, because it disables the standard EUnit output.

Then just run Rebar 3 as usual: rebar3 eunit.

Profiling

To get timings of long running tests, add profile to the option list:

{eunit_opts, [no_tty, {report, {unite_compact, [profile]}}]}.

This will show the top 10 slowest tests (or the top N slowest tests if {profile, N} is used).

Donations

If you or your company use Unite and find it useful, donations are greatly appreciated!

Contributors

eproxus

113 commits

maxnordlund

2 commits

danfilip

1 commits

kianmeng

1 commits

eproxus/unite

Pretty EUnit test formatters

Erlang

72

120 commits

updated Sep 27, 2023

See the code

README

unite

hex.pm version hex.pm license erlang versions hex.pm license

Pretty EUnit test formatters

Example output

Installation & Usage

Add Unite as a dependency in your rebar.config and enable the Unite formatter:

{profiles, [
    {test, [
        {deps, [unite]},
        {eunit_opts, [no_tty, {report, {unite_compact, []}}]}
    ]}
]}.

Using no_tty is important, because it disables the standard EUnit output.

Then just run Rebar 3 as usual: rebar3 eunit.

Profiling

To get timings of long running tests, add profile to the option list:

{eunit_opts, [no_tty, {report, {unite_compact, [profile]}}]}.

This will show the top 10 slowest tests (or the top N slowest tests if {profile, N} is used).

Donations

If you or your company use Unite and find it useful, donations are greatly appreciated!

Contributors

eproxus

113 commits

maxnordlund

2 commits

danfilip

1 commits

kianmeng

1 commits

Languages

Erlang

96.3%

Shell

3.7%