diff --git a/lib/excheck/formatter.ex b/lib/excheck/formatter.ex index 4c01cd3..1d7d386 100644 --- a/lib/excheck/formatter.ex +++ b/lib/excheck/formatter.ex @@ -62,6 +62,7 @@ defmodule ExCheck.Formatter do ExCheck.IOServer.reset_test_count total_tests end + defp update_tests_counter(%{}), do: %{} defp update_tests_counter(tests_counter) when is_map(tests_counter) do total_tests = %{tests_counter | test: tests_counter.test + ExCheck.IOServer.total_tests} ExCheck.IOServer.reset_test_count