Skip to content

Commit 169ecd3

Browse files
author
Renan Pereira
committed
exclude integration for now
1 parent 19779fa commit 169ecd3

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/dotnetcore-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
run: dotnet build rules-engine.sln --configuration Release --no-restore
2525

2626
- name: Test
27-
run: dotnet test rules-engine.sln --collect:"XPlat Code Coverage" --no-build --configuration Release --verbosity m
27+
run: dotnet test rules-engine.sln --collect:"XPlat Code Coverage" --no-build --configuration Release --verbosity m --filter \"FullyQualifiedName!~RulesEnginePro.Api.Tests\"
2828

2929
- name: Generate Report
3030
shell: pwsh
3131
run: ./scripts/generate-coverage-report.ps1
3232

3333
- name: Check Coverage
3434
shell: pwsh
35-
run: ./scripts/check-coverage.ps1 -reportPath coveragereport/Cobertura.xml -threshold 44
35+
run: ./scripts/check-coverage.ps1 -reportPath coveragereport/Cobertura.xml -threshold 71
3636

3737
- name: Coveralls GitHub Action
3838
uses: coverallsapp/[email protected]

tests/RulesEnginePro.Api.Tests/Endpoints/ActionEndpointsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public ActionEndpointsTests(TestFixture fixture)
2020

2121
_factory.ContextActionServiceMock
2222
.Setup(s => s.GetContextActions(It.IsAny<CancellationToken>()))
23-
.Returns(SampleContextActions);
23+
.Returns(SampleContextActions().ToAsyncEnumerable());
2424

2525
_client = fixture.CreateAuthenticatedClient();
2626
}
@@ -38,7 +38,7 @@ public async Task GetContextDefinitions_ReturnsExpectedResult()
3838
array[0].GetProperty("key").GetString().Should().Be("SampleAction");
3939
}
4040

41-
private static async IAsyncEnumerable<KeyValuePair<string, Dictionary<string, ContextActionBase.FieldDefinition>>> SampleContextActions()
41+
private static IEnumerable<KeyValuePair<string, Dictionary<string, ContextActionBase.FieldDefinition>>> SampleContextActions()
4242
{
4343
yield return new KeyValuePair<string, Dictionary<string, ContextActionBase.FieldDefinition>>("SampleAction",
4444
new Dictionary<string, ContextActionBase.FieldDefinition>()

tests/RulesEnginePro.Api.Tests/RulesEnginePro.Api.Tests.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99

1010
<ItemGroup>
1111
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.4" />
12+
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
1213
</ItemGroup>
1314

1415
<ItemGroup>
1516
<ProjectReference Include="..\..\src\RulesEnginePro.Api\RulesEnginePro.Api.csproj" />
1617
</ItemGroup>
1718

18-
<ItemGroup>
19-
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
20-
</ItemGroup>
2119

2220
</Project>

0 commit comments

Comments
 (0)