MQTT bridge and subscriber test cases#348
Merged
OutOfBedlam merged 6 commits intomainfrom Mar 14, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #348 +/- ##
=======================================
Coverage 43.27% 43.27%
=======================================
Files 329 329
Lines 62990 62990
=======================================
+ Hits 27260 27262 +2
+ Misses 32536 32535 -1
+ Partials 3194 3193 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and new features related to MQTT integration and testing infrastructure, as well as enhancements to cross-platform test reliability. The key changes include the addition of new embedded shell commands (
mqtt_pubandsleep), updates to documentation for consistency, enhancements to integration tests for MQTT workflows, and improved handling of platform-specific test execution.New embedded shell commands:
mqtt_pubcommand-line utility (jsh/root/embed/sbin/mqtt_pub.js) for publishing MQTT messages, supporting options for topic, broker, message/file input, QoS, and debug output.sleepcommand-line utility (jsh/root/embed/sbin/sleep.js) for pausing execution, useful in integration tests.Integration test enhancements:
mods/server/server_test.goto:mqtt_pubandsleepcommands for end-to-end testing of publishing and subscribing.db/write/exampleinstead ofdb/append/example:csvfor better correctness.Test infrastructure and reliability:
Supporting files and configuration:
mods/server/test/mosquitto.conf) for integration tests, enabling anonymous access for test containers.References: