Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ runs:
echo "${{inputs.REDIS_CA_PEM}}" > tests/NRedisStack.Tests/bin/Debug/${CLR_VERSION}/redis_ca.pem
echo "${{inputs.REDIS_USER_CRT}}" > tests/NRedisStack.Tests/bin/Debug/${CLR_VERSION}/redis_user.crt
echo "${{inputs.REDIS_USER_PRIVATE_KEY}}" > tests/NRedisStack.Tests/bin/Debug/${CLR_VERSION}/redis_user_private.key
REDIS_VERSION=$(echo "$REDIS_VERSION" | cut -d'-' -f1)
echo $REDIS_VERSION
dotnet test -f ${CLR_VERSION} --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover -p:BuildInParallel=false tests/Test.proj --logger GitHubActions
echo "::endgroup::"
- name: Codecov
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,8 @@ jobs:
shell: cmd
env:
REDIS_VERSION: ${{env.redis_stack_version}}
run: |
run: |
rem Extract part of the version before the '-' character
for /f "tokens=1 delims=-" %%a in ("%REDIS_VERSION%") do set REDIS_VERSION=%%a
echo %REDIS_VERSION%
dotnet test -f net481 --no-build --verbosity detailed -p:BuildInParallel=false tests/Test.proj --logger GitHubActions
4 changes: 0 additions & 4 deletions tests/NRedisStack.Tests/Search/SearchTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,6 @@ public void AlterAdd(string endpointId)
Assert.True(info.OffsetsPerTermAvg > 0.8);
Assert.Equal(8, info.OffsetBitsPerRecordAvg);
Assert.Equal(0, info.HashIndexingFailures);
Assert.True(info.TotalIndexingTime > 0);
Assert.Equal(0, info.Indexing);
Assert.Equal(1, info.PercentIndexed);
Assert.Equal(4, info.NumberOfUses);
Expand Down Expand Up @@ -813,7 +812,6 @@ public async Task AlterAddAsync(string endpointId)
Assert.True(info.OffsetsPerTermAvg > 0.8);
Assert.Equal(8, info.OffsetBitsPerRecordAvg);
Assert.Equal(0, info.HashIndexingFailures);
Assert.True(info.TotalIndexingTime > 0);
Assert.Equal(0, info.Indexing);
Assert.Equal(1, info.PercentIndexed);
Assert.Equal(4, info.NumberOfUses);
Expand Down Expand Up @@ -877,7 +875,6 @@ public void AlterAddSortable(string endpointId)
Assert.True(info.OffsetsPerTermAvg > 0.8);
Assert.Equal(8, info.OffsetBitsPerRecordAvg);
Assert.Equal(0, info.HashIndexingFailures);
Assert.True(info.TotalIndexingTime > 0);
Assert.Equal(0, info.Indexing);
Assert.Equal(1, info.PercentIndexed);
Assert.Equal(4, info.NumberOfUses);
Expand Down Expand Up @@ -974,7 +971,6 @@ public async Task AlterAddSortableAsync(string endpointId)
Assert.True(info.OffsetsPerTermAvg > 0.8);
Assert.Equal(8, info.OffsetBitsPerRecordAvg);
Assert.Equal(0, info.HashIndexingFailures);
Assert.True(info.TotalIndexingTime > 0);
Assert.Equal(0, info.Indexing);
Assert.Equal(1, info.PercentIndexed);
Assert.Equal(4, info.NumberOfUses);
Expand Down