File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
InformaticsGateway/Test/Common Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -145,9 +145,9 @@ jobs:
145
145
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
146
146
shell : powershell
147
147
run : |
148
- .\.sonar\scanner\dotnet-sonarscanner begin /k:"Project-MONAI_monai-deploy-informatics-gateway" /o:"project-monai" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
148
+ .\.sonar\scanner\dotnet-sonarscanner begin /k:"Project-MONAI_monai-deploy-informatics-gateway" /o:"project-monai" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="src\${{ env.TEST_RESULTS }}\**\*.xml"
149
149
dotnet build -c ${{ env.BUILD_CONFIG }} --nologo "src\${{ env.SOLUTION }}"
150
- dotnet test --filter FullyQualifiedName\!~Monai.Deploy.InformaticsGateway.Integration.Test -c ${{ env.BUILD_CONFIG }} -v=minimal --results-directory "src\${{ env.TEST_RESULTS }}" --collect:"XPlat Code Coverage" --settings src\coverlet.runsettings "src\${{ env.SOLUTION }}"
150
+ dotnet test --no-build -- filter FullyQualifiedName\!~Monai.Deploy.InformaticsGateway.Integration.Test -c ${{ env.BUILD_CONFIG }} -v=minimal --results-directory "src\${{ env.TEST_RESULTS }}" --collect:"XPlat Code Coverage" --settings src\coverlet.runsettings "src\${{ env.SOLUTION }}"
151
151
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
152
152
153
153
- uses : codecov/codecov-action@v2
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public void ConfigureServiceUris(Uri uriRoot)
57
57
Guard . Against . MalformUri ( uriRoot , nameof ( uriRoot ) ) ;
58
58
59
59
_httpClient . BaseAddress = uriRoot ;
60
- _logger . Log ( LogLevel . Debug , $ "Service URI set to { uriRoot } ") ;
60
+ _logger ? . Log ( LogLevel . Debug , $ "Base address set to { uriRoot } ") ;
61
61
}
62
62
63
63
/// <inheritdoc/>
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public void ConfigureServiceUris(Uri uriRoot)
61
61
62
62
_httpClient . BaseAddress = uriRoot ;
63
63
64
- _logger . Log ( LogLevel . Debug , $ "Base address set to { uriRoot } ") ;
64
+ _logger ? . Log ( LogLevel . Debug , $ "Base address set to { uriRoot } ") ;
65
65
}
66
66
67
67
/// <inheritdoc/>
Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ public void ToDicomTransferSyntaxArrayWithEmptyList()
73
73
74
74
var result = uids . ToDicomTransferSyntaxArray ( ) ;
75
75
76
- Assert . Null ( result ) ;
76
+ Assert . Empty ( result ) ;
77
77
}
78
78
79
79
[ Fact ( DisplayName = "DicomExtensions.ToDicomTransferSyntaxArray test with null input" ) ]
80
80
public void ToDicomTransferSyntaxArrayWithNullInput ( )
81
81
{
82
82
var result = DicomExtensions . ToDicomTransferSyntaxArray ( null ) ;
83
83
84
- Assert . Null ( result ) ;
84
+ Assert . Empty ( result ) ;
85
85
}
86
86
}
87
87
}
You can’t perform that action at this time.
0 commit comments