Skip to content

Commit b0b4fb6

Browse files
committed
Improving documentation and code coverage analysis and build
1 parent dfbefa3 commit b0b4fb6

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

Examples/MovieProject/MovieProject.Web/Program.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
using Microsoft.AspNetCore;
22
using Microsoft.AspNetCore.Hosting;
33
using NLog.Web;
4-
using System.Diagnostics.CodeAnalysis;
54

65
namespace MovieProject.Web
7-
{
8-
// this code is tested by replicating part of the logic in 'SetupServerFixture.cs'
9-
[ExcludeFromCodeCoverage]
6+
{
107
public class Program
118
{
129
public static void Main(string[] args)

Examples/MovieProject/MovieProject.Web/Startup.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ private void AddHttpDependencies(IServiceCollection services)
116116
return client;
117117
});
118118
}
119-
120-
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
119+
121120
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
122121
{
123122
if (env.IsProduction())

appveyor.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ before_build:
1414
# Display .NET Core version
1515
- cmd: dotnet --version
1616
# Display minimal restore text
17-
- cmd: dotnet restore --verbosity m
17+
- cmd: dotnet restore --verbosity m > RestoreResult.txt
1818
build_script:
19-
- cmd: dotnet build --no-restore --verbosity m --configuration Release
19+
- cmd: dotnet build --no-restore --verbosity m --configuration Release > BuildResult.txt
2020
after_build:
2121
# For once the build has completed
2222
clone_depth: 1
@@ -25,7 +25,9 @@ test_script:
2525
on_finish :
2626
# any cleanup in here
2727
artifacts:
28-
- path: 'TestResult.txt'
28+
- path: 'RestoreResult.txt'
29+
- path: 'BuildResult.txt'
30+
- path: 'TestResult.txt'
2931
- path: '**\*.nupkg'
3032
name: NugetPackage
3133
deploy: off

0 commit comments

Comments
 (0)