Skip to content

Commit 337ba3b

Browse files
readme documentation for CI workflow
1 parent 5c5827f commit 337ba3b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ From the terminal, run the following CLI commands:
4949
mvn checkstyle:check
5050
```
5151

52+
## Continuous Integration & Reports
53+
---------------------------------------------------------------------
54+
- **Workflow:** `.github/workflows/ci-reports.yml` runs `./mvnw -B -ntp clean test`, `jacoco:report`, `pmd:pmd` (HTML) + `pmd:check` gate, and `checkstyle:checkstyle`. It then snapshots JaCoCo/PMD HTML to PNG via `scripts/html_to_png.sh` and uploads everything as the `ci-reports` artifact.
55+
- **Artifacts:** CI bundles `reports/` (HTML copies, PNG screenshots, raw XML) plus `target/surefire-reports/`. Grab the `ci-reports` artifact from a workflow run to view coverage and static analysis outputs.
56+
- **Optional live E2E:** Disabled by default. Enable by setting `RUN_LIVE_E2E=true` in the workflow (step runs `LIVE_E2E=true ./mvnw -Dtest=dev.coms4156.project.metadetect.e2e.ClientServiceLiveE2eTest test` and requires real Supabase/DB env vars).
57+
- **Manual API/E2E tools:** If external dependencies are unavailable, run the live test locally with the command above (see End-to-End Testing) and ensure Supabase/DB secrets are exported. We use Postman for manual API checks when exercising the live stack. Document any skipped external runs in PRs if needed.
58+
5259
# End-to-End Testing
5360
---------------------------------------------------------------------
5461
- **Live E2E against real Supabase + DB (opt-in):**

0 commit comments

Comments
 (0)