       IO.write invalid("?", config)
     end
 
-    {:ok, %{config | tests_counter: update_tests_counter(config.tests_counter, test),
-                     invalids_counter: config.invalids_counter + 1}}
+    {:ok, %{config | test_counter: update_test_counter(config.test_counter, test),
+                     invalid_counter: config.invalid_counter + 1}}
   end
 
   def handle_event({:test_finished, %ExUnit.Test{state: {:failed, failures}} = test}, config) do

      IO.puts failure(trace_test_result(test), config)
    end

    formatted = format_test_failure(test, failures, config.failures_counter + 1,
                                    config.width, &formatter(&1, &2, config))
    print_failure(formatted, config)
    print_logs(test.logs)

    {:ok, %{config | tests_counter: update_tests_counter(config.tests_counter, test),
                     failures_counter: config.failures_counter + 1}}
  end

  def handle_event({:case_started, %ExUnit.TestCase{name: name}}, config) do

  end

  def handle_event({:case_finished, %ExUnit.TestCase{state: {:failed, failures}} = test_case}, config) do
    formatted = format_test_case_failure(test_case, failures, config.failure_counter + 1,
                                         config.width, &formatter(&1, &2, config))
    print_failure(formatted, config)
    {:ok, %{config | failure_counter: config.failure_counter + 1}}
  end

  ## Tracing
