Skip to content

Add integration tests for all routes#283

Merged
amirrr merged 2 commits into
mainfrom
add-backend-route-tests
May 22, 2026
Merged

Add integration tests for all routes#283
amirrr merged 2 commits into
mainfrom
add-backend-route-tests

Conversation

@amirrr
Copy link
Copy Markdown
Collaborator

@amirrr amirrr commented May 22, 2026

  • Implemented integration tests for the answers route with various scenarios including GET, POST, and authorization checks.
  • Created integration tests for the experiments route to validate session handling.
  • Added feedbacks route tests to ensure proper payload validation and spam filtering.
  • Developed results route tests to verify metrics calculations and session handling.
  • Established statements route tests to confirm correct statement retrieval and validation.
  • Integrated treatments route tests to check treatment assignment and retrieval.
  • Implemented users route tests for user registration, magic link handling, and account deletion.
  • Added user statements route tests to validate statement creation and authorization handling.

amirrr added 2 commits May 22, 2026 17:44
…ts, feedbacks, results, statements, treatments, users, and user statements

- Implemented integration tests for the answers route with various scenarios including GET, POST, and authorization checks.
- Created integration tests for the experiments route to validate session handling.
- Added feedbacks route tests to ensure proper payload validation and spam filtering.
- Developed results route tests to verify metrics calculations and session handling.
- Established statements route tests to confirm correct statement retrieval and validation.
- Integrated treatments route tests to check treatment assignment and retrieval.
- Implemented users route tests for user registration, magic link handling, and account deletion.
- Added user statements route tests to validate statement creation and authorization handling.
@cypress
Copy link
Copy Markdown

cypress Bot commented May 22, 2026

Commonsense    Run #359

Run Properties:  status check passed Passed #359  •  git commit bf5b1306cd: Add integration tests for all routes (#283)
Project Commonsense
Branch Review main
Run status status check passed Passed #359
Run duration 01m 27s
Commit git commit bf5b1306cd: Add integration tests for all routes (#283)
Committer Amirhossein Nakhaei
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 14
View all changes introduced in this branch ↗︎

@amirrr amirrr merged commit bf5b130 into main May 22, 2026
3 checks passed
@amirrr amirrr deleted the add-backend-route-tests branch May 22, 2026 15:53
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.

1 participant