Skip to content

Commit 2190d0e

Browse files
committed
Fix CI build
- added xunit.runner.json - moved retrieval of swagger document to test context fixture
1 parent f0f4aa2 commit 2190d0e

File tree

11 files changed

+259
-452
lines changed

11 files changed

+259
-452
lines changed

Build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function FetchBaseBranchIfNotMaster(){
107107
FetchBaseBranchIfNotMaster
108108

109109
dotnet tool restore
110-
CheckLastExitCode
110+
CheckLastExitCode
111111

112112
dotnet build -c Release
113113
CheckLastExitCode
@@ -116,6 +116,7 @@ RunInspectCode
116116
RunCleanupCode
117117

118118
dotnet test -c Release --no-build --collect:"XPlat Code Coverage"
119+
119120
CheckLastExitCode
120121

121122
ReportCodeCoverage

test/OpenApiClientTests/OpenApiClientTests.csproj

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

71+
<ItemGroup>
72+
<None Update="xunit.runner.json">
73+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
74+
</None>
75+
</ItemGroup>
76+
7177
<!-- Fixes IntelliSense errors on openapi.json in Visual Studio 2019, which uses the schema for OpenAPI 3.1 by default. -->
7278
<ProjectExtensions>
7379
<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: 42 additions & 135 deletions
Large diffs are not rendered by default.

test/OpenApiTests/NamingConvention/CamelCase/swagger.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -861,29 +861,6 @@
861861
},
862862
"additionalProperties": false
863863
},
864-
"nullValue": {
865-
"not": {
866-
"anyOf": [
867-
{
868-
"type": "string"
869-
},
870-
{
871-
"type": "number"
872-
},
873-
{
874-
"type": "boolean"
875-
},
876-
{
877-
"type": "object"
878-
},
879-
{
880-
"type": "array"
881-
}
882-
],
883-
"items": {}
884-
},
885-
"nullable": true
886-
},
887864
"nullableStaffMemberIdentifierResponseDocument": {
888865
"required": [
889866
"data",
@@ -989,6 +966,29 @@
989966
},
990967
"additionalProperties": false
991968
},
969+
"nullValue": {
970+
"not": {
971+
"anyOf": [
972+
{
973+
"type": "string"
974+
},
975+
{
976+
"type": "number"
977+
},
978+
{
979+
"type": "boolean"
980+
},
981+
{
982+
"type": "object"
983+
},
984+
{
985+
"type": "array"
986+
}
987+
],
988+
"items": {}
989+
},
990+
"nullable": true
991+
},
992992
"staffMemberAttributesInResponse": {
993993
"type": "object",
994994
"properties": {

0 commit comments

Comments
 (0)