Skip to content

Commit 332f48e

Browse files
author
Kristiyan Ivanov
authored
Ri 0000 fixing coverage paths (#4701)
* RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch * RI-0000-fixing test coverage path mismatch - testing nyc params * RI-0000-fixing test coverage path mismatch - testing nyc params * RI-0000-fixing test coverage path mismatch - testing nyc params * RI-0000-fixing test coverage path mismatch - testing nyc params * RI-0000-fixing test coverage path mismatch - testing nyc handling in the integrations * RI-0000-fixing test coverage path mismatch - testing nyc handling in the integrations * RI-0000-fixing test coverage path mismatch - testing nyc handling in the integrations * RI-0000-fixing test coverage path mismatch - removing logs and debug * RI-0000-fixing test coverage path mismatch - removing logs and debug
1 parent bb492b8 commit 332f48e

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/tests-integration.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,68 @@ jobs:
128128
./redisinsight/api/test/test-runs/start-test-run.sh -r ${{ matrix.rte }} -t ${{ inputs.build }}
129129
mkdir -p itest/coverages && mkdir -p itest/results
130130
131+
- name: Verify coverage files generation
132+
if: always()
133+
run: |
134+
echo "🎉 SUCCESS! Coverage files are being generated correctly!"
135+
echo ""
136+
echo "=== Final coverage directory contents ==="
137+
ls -la ./redisinsight/api/test/test-runs/coverage/ || echo "Coverage directory does not exist!"
138+
echo ""
139+
echo "=== Nyc coverage directory contents ==="
140+
ls -la ./redisinsight/api/test/test-runs/coverage/.nyc_output || echo "Nyc directory does not exist!"
141+
echo ""
142+
echo "=== File verification ==="
143+
if [ -f "./redisinsight/api/test/test-runs/coverage/test-run-result.json" ]; then
144+
echo "✅ Test results file exists! File size:"
145+
ls -lh ./redisinsight/api/test/test-runs/coverage/test-run-result.json
146+
else
147+
echo "❌ Test results file missing!"
148+
fi
149+
150+
if [ -f "./redisinsight/api/test/test-runs/coverage/test-run-coverage.json" ]; then
151+
echo "✅ Coverage file exists! File size:"
152+
ls -lh ./redisinsight/api/test/test-runs/coverage/test-run-coverage.json
153+
else
154+
echo "❌ Coverage file missing!"
155+
fi
156+
157+
if [ -f "./redisinsight/api/test/test-runs/coverage/test-run-result.xml" ]; then
158+
echo "✅ JUnit XML file exists! File size:"
159+
ls -lh ./redisinsight/api/test/test-runs/coverage/test-run-result.xml
160+
else
161+
echo "❌ JUnit XML file missing!"
162+
fi
163+
164+
- name: Debug NYC coverage generation
165+
if: always()
166+
run: |
167+
echo "=== Checking coverage generation results ==="
168+
echo "Working directory: $(pwd)"
169+
echo ""
170+
echo "=== Docker container debug log ==="
171+
cd ./redisinsight/api/test/test-runs
172+
if [ -f "coverage/debug.log" ]; then
173+
echo "📋 Debug log from Docker container:"
174+
cat coverage/debug.log
175+
else
176+
echo "❌ No debug log found from Docker container"
177+
fi
178+
echo ""
179+
echo "=== Coverage files status ==="
180+
if [ -d "coverage/.nyc_output" ] && [ "$(find coverage/.nyc_output -name "*.json" | wc -l)" -gt 0 ]; then
181+
echo "✅ .nyc_output directory found with $(find coverage/.nyc_output -name "*.json" | wc -l) files"
182+
echo "✅ NYC raw coverage data generated successfully"
183+
if [ -f "coverage/test-run-coverage.json" ]; then
184+
echo "✅ test-run-coverage.json file exists!"
185+
ls -lh coverage/test-run-coverage.json
186+
else
187+
echo "❌ test-run-coverage.json file missing - NYC merge failed in Docker container"
188+
fi
189+
else
190+
echo "❌ No coverage data files found in coverage/.nyc_output"
191+
fi
192+
131193
- name: Copy test results to artifacts
132194
run: |
133195
echo "=== COPYING TEST RESULTS ==="

0 commit comments

Comments
 (0)