Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add integration tests using a mocked server #58

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

jgsogo
Copy link
Collaborator

@jgsogo jgsogo commented Jan 28, 2025

Adds an integration test that validates that the clients fetches a new configuration when the server informs there is some change using the websocket connection.

Note.- There are some other (minimal) changes that were done/requested by pre-commits.

Co-authored-by: Rainer Schoenberger <[email protected]>
Signed-off-by: Javier G. Sogo <[email protected]>
@jgsogo jgsogo force-pushed the feat-tungstenite-mock-server branch from a58a9cf to cbb41c7 Compare January 28, 2025 12:23
@@ -20,7 +20,7 @@ jobs:
run: cargo build --verbose --workspace
# Tests: we only run library and documentation tests (integration tests are using the remote server!)
- name: Run tests (unittests)
run: cargo test --lib --verbose --workspace
run: cargo test --verbose --workspace
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rainerschoe , ⬆️ , now we can execute all the tests in the CI

@jgsogo jgsogo marked this pull request as ready for review January 28, 2025 12:30
@jgsogo jgsogo requested a review from rainerschoe January 28, 2025 12:30
@jgsogo jgsogo enabled auto-merge (squash) January 28, 2025 12:31
@jgsogo jgsogo merged commit 26d5f9e into main Jan 28, 2025
2 checks passed
@jgsogo jgsogo deleted the feat-tungstenite-mock-server branch January 28, 2025 14:04
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