From d77b27dde988382b4baba2ffb015bb043db1362a Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Tue, 8 May 2018 16:53:27 -0500 Subject: [PATCH] Run dialyzer in test environment --- apps/explorer/mix.exs | 3 ++- apps/explorer_web/mix.exs | 3 ++- apps/explorer_web/test/support/feature_case.ex | 3 +++ mix.exs | 3 ++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/explorer/mix.exs b/apps/explorer/mix.exs index 77604ed937..51935e23a2 100644 --- a/apps/explorer/mix.exs +++ b/apps/explorer/mix.exs @@ -22,7 +22,8 @@ defmodule Explorer.Mixfile do coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, - "coveralls.html": :test + "coveralls.html": :test, + dialyzer: :test ], start_permanent: Mix.env() == :prod, test_coverage: [tool: ExCoveralls], diff --git a/apps/explorer_web/mix.exs b/apps/explorer_web/mix.exs index 2a2ed34063..a4d185c495 100644 --- a/apps/explorer_web/mix.exs +++ b/apps/explorer_web/mix.exs @@ -22,7 +22,8 @@ defmodule ExplorerWeb.Mixfile do coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, - "coveralls.html": :test + "coveralls.html": :test, + dialyzer: :test ], start_permanent: Mix.env() == :prod, test_coverage: [tool: ExCoveralls], diff --git a/apps/explorer_web/test/support/feature_case.ex b/apps/explorer_web/test/support/feature_case.ex index 1bd857e2d1..25dc313046 100644 --- a/apps/explorer_web/test/support/feature_case.ex +++ b/apps/explorer_web/test/support/feature_case.ex @@ -1,6 +1,9 @@ defmodule ExplorerWeb.FeatureCase do 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 quote do use Wallaby.DSL diff --git a/mix.exs b/mix.exs index 79bbdb3311..c8e4a3e43f 100644 --- a/mix.exs +++ b/mix.exs @@ -18,7 +18,8 @@ defmodule ExplorerUmbrella.Mixfile do coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, - "coveralls.html": :test + "coveralls.html": :test, + dialyzer: :test ], start_permanent: Mix.env() == :prod, test_coverage: [tool: ExCoveralls]