Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ex_unit/lib/ex_unit/cli_formatter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ defmodule ExUnit.CLIFormatter do
percentage = Float.round(slowest_us / run_us * 100, 1)

[
"\nTop #{slowest} slowest (#{slowest_time}s), #{percentage}% of total time:\n\n"
"\nTop #{slowest} slowest modules (#{slowest_time}s), #{percentage}% of total time:\n\n"
| Enum.map(slowest_tests, &format_slow_module/1)
]
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ex_unit/test/ex_unit_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ defmodule ExUnitTest do
configure_and_reload_on_exit(slowest_modules: 2)

output = capture_io(fn -> ExUnit.run() end)
assert output =~ ~r"Top 2 slowest \(\d+\.\d+s\), \d+.\d% of total time:"
assert output =~ ~r"Top 2 slowest modules \(\d+\.\d+s\), \d+.\d% of total time:"
assert output =~ ~r"SlowestTestModule \(.+ms\)"
assert output =~ ~r"SlowerTestModule \(.+ms\)"
end
Expand Down
Loading