diff --git a/mix.exs b/mix.exs
index a00badf..6d504df 100644
--- a/mix.exs
+++ b/mix.exs
@@ -37,6 +37,14 @@ defmodule Hcaptcha.Mixfile do
     ]
   end
 
+  def cli do
+    [
+      preferred_envs: [
+        dialyzer: :test
+      ]
+    ]
+  end
+
   defp description do
     """
     A simple hCaptcha package for Elixir applications, provides verification