diff --git a/lib/exvcr/checker.ex b/lib/exvcr/checker.ex index c214712..7cfd521 100644 --- a/lib/exvcr/checker.ex +++ b/lib/exvcr/checker.ex @@ -22,7 +22,7 @@ defmodule ExVCR.Checker do def add_server_count(recorder), do: add_count(recorder, :server) defp add_count(recorder, type) do - if Mix.Project.config[:test_coverage][:tool] == ExVCR do + if ExVCR.Checker.get != [] do ExVCR.Checker.append({type, ExVCR.Recorder.get_file_path(recorder)}) end end diff --git a/lib/exvcr/recorder.ex b/lib/exvcr/recorder.ex index 94a3f3b..aae63dc 100644 --- a/lib/exvcr/recorder.ex +++ b/lib/exvcr/recorder.ex @@ -11,6 +11,8 @@ defmodule ExVCR.Recorder do Initialize recorder. """ def start(options) do + ExVCR.Checker.start([]) + {:ok, act_responses} = Responses.start([]) {:ok, act_options} = Options.start(options)