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

Include log messages in unit tests #5666

Merged
merged 4 commits into from
Dec 26, 2024
Merged

Conversation

esev
Copy link
Contributor

@esev esev commented Dec 25, 2024

Provide a minimal environment for unit tests that includes logging messages.

Makes it easier to troubleshoot when writing unit tests. And it ensures the log lines are tested as well. I've placed initializeTestEnvironment() in a separate file, as I'd also like to use it for a future unit test for MQTT as well.

Tested with: pio test --environment native

@fifieldt fifieldt merged commit cc357df into meshtastic:master Dec 26, 2024
48 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.

3 participants