Skip to content

Commit cc502f9

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

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/tests-integration.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,16 @@ jobs:
167167
echo "=== Checking coverage generation results ==="
168168
echo "Working directory: $(pwd)"
169169
echo ""
170-
echo "=== Coverage files status ==="
170+
echo "=== Docker container debug log ==="
171171
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 ==="
172180
if [ -d "coverage/.nyc_output" ] && [ "$(find coverage/.nyc_output -name "*.json" | wc -l)" -gt 0 ]; then
173181
echo "✅ .nyc_output directory found with $(find coverage/.nyc_output -name "*.json" | wc -l) files"
174182
echo "✅ NYC raw coverage data generated successfully"

redisinsight/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js -d ./config/ormconfig.ts",
3636
"test:api": "cross-env NODE_ENV=test ts-mocha --paths --config ./test/api/.mocharc.yml",
3737
"test:api:cov": "nyc --reporter=html --reporter=text --reporter=text-summary yarn run test:api",
38-
"test:api:ci:cov": "cross-env NODE_ENV=test nyc --temp-dir coverage/.nyc_output --report-dir coverage --instrument -r text -r text-summary -r html yarn run test:api --reporter mocha-multi-reporters --reporter-options configFile=test/api/reporters.json && echo 'NYC tests completed, checking .nyc_output...' && ls -la coverage/.nyc_output && echo 'Running NYC merge...' && nyc merge coverage/.nyc_output coverage/test-run-coverage.json && echo 'NYC merge completed!' && ls -la coverage/test-run-coverage.json",
38+
"test:api:ci:cov": "cross-env NODE_ENV=test nyc --temp-dir coverage/.nyc_output --report-dir coverage --instrument -r text -r text-summary -r html yarn run test:api --reporter mocha-multi-reporters --reporter-options configFile=test/api/reporters.json; echo 'Exit code from tests:' $? > coverage/debug.log; echo 'NYC tests completed, checking .nyc_output...' >> coverage/debug.log; ls -la coverage/.nyc_output >> coverage/debug.log 2>&1; echo 'Running NYC merge...' >> coverage/debug.log; nyc merge coverage/.nyc_output coverage/test-run-coverage.json >> coverage/debug.log 2>&1; echo 'NYC merge exit code:' $? >> coverage/debug.log; echo 'NYC merge completed!' >> coverage/debug.log; ls -la coverage/test-run-coverage.json >> coverage/debug.log 2>&1",
3939
"typeorm:migrate": "cross-env NODE_ENV=staging yarn typeorm migration:generate ./migration/migration",
4040
"typeorm:run": "yarn typeorm migration:run",
4141
"typeorm:run:stage": "cross-env NODE_ENV=staging yarn typeorm migration:run"

0 commit comments

Comments
 (0)