Skip to content

fix: use 'true' instead of '1' for E2E_COLLECT_COVERAGE#2564

Merged
gustavolira merged 1 commit into
redhat-developer:mainfrom
gustavolira:fix/e2e-coverage-true-value
Jun 4, 2026
Merged

fix: use 'true' instead of '1' for E2E_COLLECT_COVERAGE#2564
gustavolira merged 1 commit into
redhat-developer:mainfrom
gustavolira:fix/e2e-coverage-true-value

Conversation

@gustavolira

Copy link
Copy Markdown
Member

Aligns E2E_COLLECT_COVERAGE value with e2e-test-utils PR #95.

Problem

After merging redhat-developer/rhdh-e2e-test-utils#95, coverage collection stopped working because:

  • This repo sets E2E_COLLECT_COVERAGE=1 (in run-e2e.sh)
  • e2e-test-utils now checks for E2E_COLLECT_COVERAGE === "true"
  • Mismatch causes coverage fixture to return early without collecting

Fix

Updated all occurrences from "1" to "true" to match:

  • run-e2e.sh: default value and all conditional checks
  • scripts/upload-coverage.sh: examples and error messages
  • scripts/report-coverage.sh: examples

This aligns with the boolean env var convention used elsewhere (E2E_NIGHTLY_MODE, etc).

Testing

After merge, re-run /publish on PR #2550 to validate end-to-end coverage collection.

Aligns with e2e-test-utils PR redhat-developer#95 (merged 2026-06-04) which changed
from checking E2E_COLLECT_COVERAGE === "1" to === "true" for
consistency with other boolean env vars (E2E_NIGHTLY_MODE,
USE_NEW_FRONTEND_SYSTEM).

Changes:
- run-e2e.sh: default from "1" to "true", update all checks
- scripts/upload-coverage.sh: update example and error message
- scripts/report-coverage.sh: update example

This fixes coverage collection which was broken because the overlay
repo was setting E2E_COLLECT_COVERAGE=1 but test-utils now expects
E2E_COLLECT_COVERAGE=true.
@gustavolira gustavolira requested review from a team, gashcrumb and kadel as code owners June 4, 2026 17:53
@sonarqubecloud

sonarqubecloud Bot commented Jun 4, 2026

Copy link
Copy Markdown

@gustavolira

Copy link
Copy Markdown
Member Author

/publish

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

PR action (/publish) cancelled: PR doesn't touch only 1 workspace.

@gustavolira gustavolira merged commit 8a4b017 into redhat-developer:main Jun 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants