Skip to content

apps/unity: Add printf configuration #3153

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

Merged
merged 1 commit into from
Aug 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions include/testing/unity_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@
# define UNITY_OUTPUT_COLOR 1
#endif

/* Enable Unity TEST_PRINTF */

#ifdef CONFIG_TESTING_UNITY_PRINT_FORMATTED
# define UNITY_INCLUDE_PRINT_FORMATTED 1
#endif

#endif /* UNITY_CONFIG_H */
8 changes: 7 additions & 1 deletion testing/unity/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ config TESTING_UNITY_OUTPUT_COLOR
bool "Output color"
default n
---help---
Select this if your want to add some colors to your tests
Select this if you want to add some colors to your tests

config TESTING_UNITY_PRINT_FORMATTED
bool "Unity printf"
default y
---help---
Select this if you you want to use the Unity TEST_PRINTF macro.

endif # TESTING_UNITY
Loading