From cd6b4b13fd8dfbb13a8b7c352b09ead5e781cbaf Mon Sep 17 00:00:00 2001 From: nelsonic Date: Fri, 24 Jun 2022 12:15:56 +0100 Subject: [PATCH] exclude phoenix files from test coverage #89 --- coveralls.json | 6 +++++- lib/app_web/router.ex | 9 --------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/coveralls.json b/coveralls.json index 5a0eef6f..a03b15ee 100644 --- a/coveralls.json +++ b/coveralls.json @@ -1,8 +1,12 @@ { "skip_files": [ "test/", + "lib/app.ex", "lib/app/application.ex", "lib/app_web.ex", - "lib/app_web/views/error_helpers.ex" + "lib/app/repo.ex", + "lib/app_web/views/error_helpers.ex", + "lib/app_web/endpoint.ex", + "lib/app_web/telemetry.ex" ] } diff --git a/lib/app_web/router.ex b/lib/app_web/router.ex index fd6c64c6..9fe7dedf 100644 --- a/lib/app_web/router.ex +++ b/lib/app_web/router.ex @@ -10,18 +10,9 @@ defmodule AppWeb.Router do plug :put_secure_browser_headers end - pipeline :api do - plug :accepts, ["json"] - end - scope "/", AppWeb do pipe_through :browser get "/", PageController, :index end - - # Other scopes may use custom stacks. - # scope "/api", AppWeb do - # pipe_through :api - # end end