Skip to content

Commit

Permalink
#6 Added test for module to confirm that we can launch app.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kavignon committed Nov 10, 2024
1 parent 8e671c4 commit 92b2f2b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions test/elixir_kickoff_application_test.exs
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
defmodule TemplateApplicationTest do
# test/elixir_kickoff_application_test.exs
defmodule ElixirKickoffApplicationTest do
use ExUnit.Case
doctest TemplateApplication

test "greets the world" do
assert TemplateApplication.hello() == :world
@moduledoc """
Tests for the ElixirKickoff.Application module.
"""

test "ensures the application starts correctly" do
# Ensure the application is started, starting it only if necessary
case Application.ensure_all_started(:template_application) do
{:ok, _apps} -> assert true
{:error, {:already_started, _app}} -> assert true
end
end
end

0 comments on commit 92b2f2b

Please sign in to comment.