Skip to content

API tests and mocked API tests#43

Closed
HelenMartmaa wants to merge 2 commits into
tanjaq:mainfrom
HelenMartmaa:main
Closed

API tests and mocked API tests#43
HelenMartmaa wants to merge 2 commits into
tanjaq:mainfrom
HelenMartmaa:main

Conversation

@HelenMartmaa
Copy link
Copy Markdown

Task 1. API tests. Coverage and run time result added as images. Coverage 100% and run time about 50 seconds.
Task 2. Mocked API tests. Coverage and run time result added as image. Coverage 100% and run time about 10 seconds, which is 5 times faster than regular test run made in task 1.

@github-actions
Copy link
Copy Markdown

API & Mocked Tests and Coverage

Purpose: Validate README requirements for regular tests, mocked email tests, coverage, and runtime comparison.
Status: ✅ PASS
Regular tests (app.test.js): ✅ PASS (49387ms)
Mocked tests (app.mock.test.js): ✅ PASS (1250ms)
Coverage gate (both runs at 100%): ✅ PASS
Runtime gate (regular ≥ mocked + 1500ms): ✅ PASS
Regular coverage (app.js): lines=100% | statements=100% | functions=100% | branches=100%
Mocked coverage (app.js only): lines=100% | statements=100% | functions=100% | branches=100%
Run details: https://github.com/tanjaq/User-Register/actions/runs/24801262952
PR checks: https://github.com/tanjaq/User-Register/pull/43/checks

@tanjaq tanjaq closed this May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants