Skip to content

Commit feec6a7

Browse files
author
Luc Tielen
committed
Fix issue parroty#43: Formatter fails with no configured tests
1 parent 184cf48 commit feec6a7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/excheck/formatter.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ defmodule ExCheck.Formatter do
6262
ExCheck.IOServer.reset_test_count
6363
total_tests
6464
end
65+
defp update_tests_counter(%{}) do
66+
total_tests = ExCheck.IOServer.total_tests
67+
ExCheck.IOServer.reset_test_count
68+
total_tests
69+
end
6570
defp update_tests_counter(tests_counter) when is_map(tests_counter) do
6671
total_tests = %{tests_counter | test: tests_counter.test + ExCheck.IOServer.total_tests}
6772
ExCheck.IOServer.reset_test_count

0 commit comments

Comments
 (0)