Skip to content

Refactor/isolate json tests#1092

Merged
gittiver merged 6 commits into
CrowCpp:masterfrom
nicholashanson:refactor/isolate_json_tests
Sep 21, 2025
Merged

Refactor/isolate json tests#1092
gittiver merged 6 commits into
CrowCpp:masterfrom
nicholashanson:refactor/isolate_json_tests

Conversation

@nicholashanson

Copy link
Copy Markdown
Contributor

Moved json unit tests from from unittest.cpp to unit_test/test_json.cpp.

Addiitonally added [json] tag to json unit tests so that they can be run in isolation.

After Refactor

Filters: [json]
Randomness seeded to: 1044706338
(2025-09-16 00:19:54) [DEBUG   ] 0.0363039083557951461345
...
(2025-09-16 00:19:54) [DEBUG   ] 0.8016815476190476
===============================================================================
All tests passed (173 assertions in 31 test cases)

- Moved tests that depend solely on `crow::response` from unittest.cpp
  to tests/unit_tests/test_http_response.cpp for clearer separation of concerns.
- Renamed the original "simple_response_routing_params" test in
  unittest.cpp to "routing_params" to reflect this chage.
- Updated CMakeLists.txt to automatically include all sources under unit_tests/.
Isolated unit tests that depend only on the utility module into test_utility.cpp.
Comment thread tests/CMakeLists.txt Outdated
@gittiver
gittiver merged commit 695e604 into CrowCpp:master Sep 21, 2025
19 checks passed
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