Skip to content

Commit 94f3c87

Browse files
committed
Fix CI build
- added xunit.runner.json - moved retrieval of swagger document to test context fixture
1 parent 474ca6e commit 94f3c87

File tree

13 files changed

+1643
-4665
lines changed

13 files changed

+1643
-4665
lines changed

Build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function FetchBaseBranchIfNotMaster() {
104104
FetchBaseBranchIfNotMaster
105105

106106
dotnet tool restore
107-
CheckLastExitCode
107+
CheckLastExitCode
108108

109109
dotnet build -c Release
110110
CheckLastExitCode
@@ -113,6 +113,7 @@ RunInspectCode
113113
RunCleanupCode
114114

115115
dotnet test -c Release --no-build --collect:"XPlat Code Coverage"
116+
116117
CheckLastExitCode
117118

118119
ReportCodeCoverage

test/OpenApiClientTests/OpenApiClientTests.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@
6767
</OpenApiReference>
6868
</ItemGroup>
6969

70+
<ItemGroup>
71+
<None Update="xunit.runner.json">
72+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
73+
</None>
74+
</ItemGroup>
75+
7076
<!-- Fixes IntelliSense errors on openapi.json in Visual Studio 2019, which uses the schema for OpenAPI 3.1 by default. -->
7177
<ProjectExtensions>
7278
<VisualStudio>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"parallelizeAssembly": false,
3+
"parallelizeTestCollections": false,
4+
"maxParallelThreads": 1
5+
}

test/OpenApiTests/NamingConvention/CamelCase/CamelCaseTests.cs

Lines changed: 43 additions & 132 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)