diff --git a/.gitignore b/.gitignore index 0ea2c9a8c..b8da9b483 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ **/build **/_build **/deps +elixir-api/cover # Dependencies .pnp.* diff --git a/elixir-api/Makefile b/elixir-api/Makefile index ea633bd25..4965cd8ed 100644 --- a/elixir-api/Makefile +++ b/elixir-api/Makefile @@ -23,7 +23,7 @@ run: # Run docker container for 'production' dataset build test: SHELL:=/bin/bash test: install test: - @. .env && MIX_ENV=test mix test + @. .env && MIX_ENV=test mix test --cover cleanup: SHELL:=/bin/bash cleanup: diff --git a/elixir-api/mix.exs b/elixir-api/mix.exs index c264218d7..2765d7da4 100644 --- a/elixir-api/mix.exs +++ b/elixir-api/mix.exs @@ -9,7 +9,16 @@ defmodule Hexerei.MixProject do start_permanent: Mix.env() == :prod, deps: deps(), escript: escript(), - releases: releases() + releases: releases(), + test_coverage: [ + summary: [ + threshold: 50 + ], + ignore_modules: [ + Router.Api.Base, + Hexerei.HTTP.DefaultClient + ] + ] ] end