Skip to content

Commit

Permalink
fix snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeih committed Jul 12, 2023
1 parent 1d15a44 commit 198100a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:

- uses: ./.github/actions/build

- run: dotnet build -c Release samples/extensions/build
- run: dotnet test -c Release -f net7.0 --no-build --filter Stage=Snapshot
working-directory: test/docfx.Snapshot.Tests
env:
Expand Down
6 changes: 3 additions & 3 deletions test/docfx.Snapshot.Tests/SamplesTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Collections.Concurrent;
Expand Down Expand Up @@ -200,9 +200,9 @@ public Task Extensions()
Clean(samplePath);

#if DEBUG
Assert.Equal(0, Exec("dotnet", "run --project build", workingDirectory: samplePath));
Assert.Equal(0, Exec("dotnet", "run --no-build --project build", workingDirectory: samplePath));
#else
Assert.Equal(0, Exec("dotnet", "run -c Release --project build", workingDirectory: samplePath));
Assert.Equal(0, Exec("dotnet", "run --no-build -c Release --project build", workingDirectory: samplePath));
#endif

return Verifier.VerifyDirectory($"{samplePath}/_site", IncludeFile).AutoVerify(includeBuildServer: false);
Expand Down

0 comments on commit 198100a

Please sign in to comment.