Skip to content

Commit

Permalink
Fix issue parroty#43: Formatter fails with no configured tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc Tielen committed Oct 6, 2017
1 parent 184cf48 commit d2e26c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/excheck/formatter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2e26c8

Please sign in to comment.