From ac1ff0c1d3dec6d2fdbf643d93f7a098db561ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20M=C3=A4nnchen?= Date: Wed, 13 Sep 2023 16:47:27 +0200 Subject: [PATCH] Cleanup rebar3 / mix Test Config (#227) --- mix.exs | 2 +- rebar.config | 27 +++++++++++++++------------ 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/mix.exs b/mix.exs index 8a24fe3..5dce31f 100644 --- a/mix.exs +++ b/mix.exs @@ -32,7 +32,7 @@ defmodule Oidcc.Mixfile do {:telemetry, "~> 1.2"}, {:telemetry_registry, "~> 0.3.1"}, {:jose, "~> 1.11"}, - {:jsx, "~> 3.1"}, + {:jsx, "~> 3.1", only: :test}, {:mock, "~> 0.3.8", only: :test}, {:ex_doc, "~> 0.29.4", only: :dev, runtime: false}, {:credo, "~> 1.7", only: :dev, runtime: false}, diff --git a/rebar.config b/rebar.config index df4f9a9..deb5fc7 100644 --- a/rebar.config +++ b/rebar.config @@ -5,8 +5,7 @@ {deps, [ {telemetry, "~> 1.2"}, {telemetry_registry, "~> 0.3.1"}, - {jose, "~> 1.11"}, - {meck, "~> 0.9.2"} + {jose, "~> 1.11"} ]}. {project_plugins, [ @@ -28,18 +27,22 @@ {dir, "_build/dev/lib/oidcc/doc"} ]}. +{profiles, [ + {test, [ + {deps, [ + {meck, "~> 0.9.2"}, + {jsx, "~> 3.1"} + ]}, + {cover_enabled, true}, + {cover_export_enabled, true}, + {coveralls_coverdata, "_build/test/cover/*.coverdata"}, + {coveralls_service_name, "github"}, + {cover_opts, [verbose]} + ]} +]}. + {hank, [{ignore, [{"test/**/*_SUITE.erl", [unnecessary_function_arguments]}, "include/**/*.hrl"]}]}. {erlfmt, [write]}. -{cover_enabled, true}. - -{cover_export_enabled, true}. - -{coveralls_coverdata, "_build/test/cover/*.coverdata"}. - -{coveralls_service_name, "github"}. - -{cover_opts, [verbose]}. - {shell, [{apps, [oidcc]}]}.