From 13e1ffa3d64b47887c3e16fba1736b04a9e47648 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Sun, 6 Jun 2021 00:07:05 +0300 Subject: [PATCH] Exclude Startup and Program from coverage. --- Retroactiune.WebAPI/Program.cs | 2 ++ Retroactiune.WebAPI/Startup.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Retroactiune.WebAPI/Program.cs b/Retroactiune.WebAPI/Program.cs index d378f68..7605ca0 100644 --- a/Retroactiune.WebAPI/Program.cs +++ b/Retroactiune.WebAPI/Program.cs @@ -1,8 +1,10 @@ +using System.Diagnostics.CodeAnalysis; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; namespace Retroactiune { + [ExcludeFromCodeCoverage] public class Program { public static void Main(string[] args) diff --git a/Retroactiune.WebAPI/Startup.cs b/Retroactiune.WebAPI/Startup.cs index 7cc13bf..9c53707 100644 --- a/Retroactiune.WebAPI/Startup.cs +++ b/Retroactiune.WebAPI/Startup.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.IO; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; @@ -13,6 +14,7 @@ using Retroactiune.Settings; namespace Retroactiune { + [ExcludeFromCodeCoverage] public class Startup { public Startup(IConfiguration configuration)