Run dialyzer in test environment

pull/162/head
Luke Imhoff 7 years ago
parent 75d362e024
commit d77b27dde9
  1. 3
      apps/explorer/mix.exs
  2. 3
      apps/explorer_web/mix.exs
  3. 3
      apps/explorer_web/test/support/feature_case.ex
  4. 3
      mix.exs

@ -22,7 +22,8 @@ defmodule Explorer.Mixfile do
coveralls: :test, coveralls: :test,
"coveralls.detail": :test, "coveralls.detail": :test,
"coveralls.post": :test, "coveralls.post": :test,
"coveralls.html": :test "coveralls.html": :test,
dialyzer: :test
], ],
start_permanent: Mix.env() == :prod, start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls], test_coverage: [tool: ExCoveralls],

@ -22,7 +22,8 @@ defmodule ExplorerWeb.Mixfile do
coveralls: :test, coveralls: :test,
"coveralls.detail": :test, "coveralls.detail": :test,
"coveralls.post": :test, "coveralls.post": :test,
"coveralls.html": :test "coveralls.html": :test,
dialyzer: :test
], ],
start_permanent: Mix.env() == :prod, start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls], test_coverage: [tool: ExCoveralls],

@ -1,6 +1,9 @@
defmodule ExplorerWeb.FeatureCase do defmodule ExplorerWeb.FeatureCase do
use ExUnit.CaseTemplate use ExUnit.CaseTemplate
# Types on Wallaby.Browser.resize_window don't allow session from start_session to be passed, so setup breaks
@dialyzer {:nowarn_function, __ex_unit_setup_0: 1}
using do using do
quote do quote do
use Wallaby.DSL use Wallaby.DSL

@ -18,7 +18,8 @@ defmodule ExplorerUmbrella.Mixfile do
coveralls: :test, coveralls: :test,
"coveralls.detail": :test, "coveralls.detail": :test,
"coveralls.post": :test, "coveralls.post": :test,
"coveralls.html": :test "coveralls.html": :test,
dialyzer: :test
], ],
start_permanent: Mix.env() == :prod, start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls] test_coverage: [tool: ExCoveralls]

Loading…
Cancel
Save