Skip to content

Integration tests for websocket tool - #229

Merged
0xB10C merged 7 commits into
masterfrom
2025-08-integration-tests-for-websocket-tool
Aug 20, 2025
Merged

0xB10C merged 7 commits into
masterfrom
2025-08-integration-tests-for-websocket-tool

Conversation

@0xB10C

@0xB10C 0xB10C commented Aug 19, 2025

Copy link
Copy Markdown
Collaborator

As part of #26 this adds integration tests (similar to these in #222) for the websocket tool.

@0xB10C

0xB10C commented Aug 19, 2025 •

Copy link
Copy Markdown
Collaborator Author

I want to add more cases with e.g.:

  • multiple clients
  • disconnecting clients

@0xB10C
0xB10C force-pushed the 2025-08-integration-tests-for-websocket-tool branch 2 times, most recently from 2191126 to f38bfc7 Compare August 19, 2025 20:45
@0xB10C 0xB10C mentioned this pull request Aug 18, 2025
4 of 6 tasks
@0xB10C
0xB10C force-pushed the 2025-08-integration-tests-for-websocket-tool branch from 888a7f9 to 01a60bd Compare August 20, 2025 10:26
@0xB10C
0xB10C force-pushed the 2025-08-integration-tests-for-websocket-tool branch from 01a60bd to bd8b55d Compare August 20, 2025 10:34
Both the websocket and metrics tool might error when the random port
is in use or WAIT_TIME is not over yet. Since this isn't a reason to
fail the test, try another port until one succeds.

Something similar could be implemented for the NATS server too.
@0xB10C
0xB10C force-pushed the 2025-08-integration-tests-for-websocket-tool branch from bc99cfc to 26ccf2a Compare August 20, 2025 11:17
@0xB10C
0xB10C marked this pull request as ready for review August 20, 2025 11:34
@0xB10C

0xB10C commented Aug 20, 2025

Copy link
Copy Markdown
Collaborator Author

master:

|| Tested/Total Lines:
|| ..
|| tools/websocket/src/main.rs: 0/47
|| 
24.78% coverage, 604/2437 lines covered

PR:

|| Tested/Total Lines:
|| ..
|| tools/websocket/src/error.rs: 0/24
|| tools/websocket/src/lib.rs: 37/43
|| tools/websocket/src/main.rs: 0/7
|| tools/websocket/tests/integration.rs: 53/61
|| 
27.43% coverage, 695/2534 lines covered

@0xB10C
0xB10C merged commit 7daa10a into master Aug 20, 2025
@0xB10C
0xB10C deleted the 2025-08-integration-tests-for-websocket-tool branch January 6, 2026 14:43
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