https://github.com/eproxus/unite
Pretty EUnit test formatters
https://github.com/eproxus/unite
Last synced: about 1 year ago
JSON representation
Pretty EUnit test formatters
- Host: GitHub
- URL: https://github.com/eproxus/unite
- Owner: eproxus
- License: mit
- Created: 2014-03-18T15:25:07.000Z (about 12 years ago)
- Default Branch: main
- Last Pushed: 2023-09-27T13:25:28.000Z (over 2 years ago)
- Last Synced: 2025-03-30T19:10:26.954Z (about 1 year ago)
- Language: Erlang
- Homepage:
- Size: 484 KB
- Stars: 72
- Watchers: 4
- Forks: 23
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
unite
Pretty EUnit test formatters
## Installation & Usage
Add Unite as a dependency in your `rebar.config` and enable the Unite formatter:
```erlang
{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:
```erlang
{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](https://github.com/sponsors/eproxus) are greatly appreciated!