Because eunit's output sucks. Let's make it better.
Here's the progress formatter running with profiling and ANSI colors turned on:
Add eunit_formatters
as a dep in your rebar.config
:
{deps, [
{eunit_formatters, ".*", {git,
"git://github.com/seancribbs/eunit_formatters", {branch, "master"}}}
]}.
Now configure eunit to use one of the output formatters (currently
only eunit_progress
):
{eunit_opts, [
no_tty, %% This turns off the default output, MUST HAVE
{report, {eunit_progress, [colored, profile]}} %% Use `profile' to see test timing information
%% Uses the progress formatter with ANSI-colored output
]}.
Copyright 2014 Sean Cribbs
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.