From 2101ab3cd9a60314791e67e4ff260e03600ec559 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Mon, 16 Sep 2024 10:20:27 -0400 Subject: [PATCH] chore: add basic tests for install task --- test/mix/tasks/ash_postgres.install_test.exs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/mix/tasks/ash_postgres.install_test.exs diff --git a/test/mix/tasks/ash_postgres.install_test.exs b/test/mix/tasks/ash_postgres.install_test.exs new file mode 100644 index 00000000..eb687a0d --- /dev/null +++ b/test/mix/tasks/ash_postgres.install_test.exs @@ -0,0 +1,13 @@ +defmodule Mix.Tasks.AshPostgres.InstallTest do + use ExUnit.Case + + import Igniter.Test + + # This is a simple test to ensure that the installation doesnt have + # any errors. We should add better tests here, though. + test "installation does not fail" do + test_project() + |> Igniter.compose_task("ash_postgres.install") + |> assert_creates("lib/test/repo.ex") + end +end