Skip to content

Commit 75775ee

Browse files
authored
Merge pull request #110 from devstress/copilot/fix-fc06acba-7c73-404c-a117-e45727c8a598
Streamline testing workflows with Aspire testing framework and centralized Allure reporting
2 parents f714ed1 + 1e9902b commit 75775ee

35 files changed

+2432
-2268
lines changed

.github/workflows/backpressure-tests.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,15 @@ jobs:
8888
throw
8989
}
9090
91-
- name: Upload BDD backpressure test results and Allure reports
91+
- name: Upload backpressure test results
9292
uses: actions/upload-artifact@v4
9393
if: always()
9494
with:
95-
name: bdd-backpressure-test-results
95+
name: backpressure-test-results
9696
path: |
9797
**/*.trx
98-
**/allure-results/**
99-
**/allure-report/**
100-
IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/bin/Release/net9.0/allure-results/**
101-
IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/bin/Release/net9.0/allure-report/**
98+
backpressure-test-summary.md
99+
retention-days: 7
102100

103101
- name: Generate Backpressure Test Summary Report
104102
if: always()

.github/workflows/build.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@ name: Build Solutions
22

33
on:
44
push:
5-
paths-ignore:
6-
- '**.md'
7-
- 'docs/**'
85
workflow_dispatch:
96

107
env:
118
configuration: Release
129

1310
concurrency:
14-
group: build-${{ github.ref }}
11+
group: build-${{ github.head_ref || github.ref }}
1512
cancel-in-progress: true
1613

1714
jobs:
@@ -76,14 +73,8 @@ jobs:
7673
needs: build
7774
uses: ./.github/workflows/reliability-tests.yml
7875

79-
stress_tests_confluent:
80-
needs: build
81-
uses: ./.github/workflows/stress-tests-confluent.yml
82-
8376
backpressure_tests:
8477
needs: build
8578
uses: ./.github/workflows/backpressure-tests.yml
8679

87-
local_testing:
88-
needs: build
89-
uses: ./.github/workflows/local-testing.yml
80+

.github/workflows/integration-tests.yml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,41 @@ jobs:
9595
9696
Write-Host "✅ Aspire orchestration health check completed!" -ForegroundColor Green
9797
98+
- name: Generate Allure reports
99+
if: always()
100+
run: |
101+
Write-Host "📊 Generating Allure reports for BDD integration tests..." -ForegroundColor Green
102+
103+
# Find allure-results directories
104+
$allureResultsDir = "IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/bin/Release/net9.0/allure-results"
105+
106+
if (Test-Path $allureResultsDir) {
107+
Write-Host "Found Allure results directory: $allureResultsDir" -ForegroundColor Yellow
108+
109+
# Generate Allure report using C# AllureReportGenerator
110+
try {
111+
Push-Location IntegrationTests/FlinkDotNet.Aspire.IntegrationTests
112+
113+
# Generate the Allure report
114+
dotnet run --project . --configuration Release -- generate-allure-report "$([System.IO.Path]::GetFullPath("bin/Release/net9.0/allure-results"))" "$([System.IO.Path]::GetFullPath("../../integration-allure-report"))"
115+
116+
Pop-Location
117+
118+
Write-Host "✅ BDD integration Allure report generated!" -ForegroundColor Green
119+
}
120+
catch {
121+
Write-Host "⚠️ Error generating Allure report: $_" -ForegroundColor Yellow
122+
}
123+
} else {
124+
Write-Host "⚠️ No Allure results found for BDD integration tests" -ForegroundColor Yellow
125+
}
126+
98127
- name: Upload BDD integration test results and Allure reports
99128
uses: actions/upload-artifact@v4
100129
if: always()
101130
with:
102-
name: bdd-integration-test-results
131+
name: integration-test-results
103132
path: |
104133
**/*.trx
105-
**/*.log
106-
**/*.txt
107-
**/allure-results/**
108-
**/allure-report/**
109-
IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/bin/Release/net9.0/allure-results/**
110-
IntegrationTests/FlinkDotNet.Aspire.IntegrationTests/bin/Release/net9.0/allure-report/**
134+
integration-allure-report/**
135+
retention-days: 7

0 commit comments

Comments
 (0)