Skip to content

Commit bb492b8

Browse files
author
Kristiyan Ivanov
authored
Ri 0000 fixing coverage paths (#4700)
* 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
1 parent cc502f9 commit bb492b8

File tree

1 file changed

+11
-73
lines changed

1 file changed

+11
-73
lines changed

.github/workflows/tests-integration.yml

Lines changed: 11 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -128,68 +128,6 @@ 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-
193131
- name: Copy test results to artifacts
194132
run: |
195133
echo "=== COPYING TEST RESULTS ==="
@@ -239,17 +177,17 @@ jobs:
239177
ITEST_NAME=${{ matrix.rte }} node ./.github/itest-results.js
240178
curl -H "Content-type: application/json" --data @itests.report.json -H "Authorization: Bearer $SLACK_TEST_REPORT_KEY" -X POST https://slack.com/api/chat.postMessage
241179
242-
# - name: Generate test results
243-
# uses: dorny/test-reporter@v1
244-
# id: test-reporter
245-
# if: always()
246-
# with:
247-
# name: 'Test results: IT (${{ matrix.rte }}) tests'
248-
# path: itest/results/*.result.json
249-
# reporter: mocha-json
250-
# list-tests: 'failed'
251-
# list-suites: 'failed'
252-
# fail-on-error: 'false'
180+
- name: Generate test results
181+
uses: dorny/test-reporter@v1
182+
id: test-reporter
183+
if: always()
184+
with:
185+
name: 'Test results: IT (${{ matrix.rte }}) tests'
186+
path: itest/results/*.result.json
187+
reporter: mocha-json
188+
list-tests: 'failed'
189+
list-suites: 'failed'
190+
fail-on-error: 'false'
253191

254192
- name: Add link to report in the workflow summary
255193
if: always()

0 commit comments

Comments
 (0)