diff --git a/lib/mix/tasks/end_to_end_test.ex b/lib/mix/tasks/end_to_end_test.ex deleted file mode 100644 index eb46cc5..0000000 --- a/lib/mix/tasks/end_to_end_test.ex +++ /dev/null @@ -1,11 +0,0 @@ -defmodule Mix.Tasks.EndToEndTest do - @moduledoc "Runs e2e tests" - - use Mix.Task - - @impl Mix.Task - def run(_) do - exit_status = Mix.shell().cmd("cd test/example_app && mix deps.get && mix test") - exit({:shutdown, exit_status}) - end -end diff --git a/mix.exs b/mix.exs index 578d773..c1a3298 100644 --- a/mix.exs +++ b/mix.exs @@ -20,7 +20,7 @@ defmodule BoomNotifier.MixProject do ], aliases: [ quality: ["format", "credo --strict", "dialyzer"], - e2e: ["cmd mix end_to_end_test"] + e2e: &run_e2e/1 ], docs: docs(), description: description(), @@ -96,4 +96,8 @@ defmodule BoomNotifier.MixProject do ] ] end + + defp run_e2e(_) do + Mix.shell().cmd("cd test/example_app && mix deps.get && mix test") + end end