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

Use boost.UT global named test suites #45

Open
kammce opened this issue Nov 30, 2024 · 0 comments
Open

Use boost.UT global named test suites #45

kammce opened this issue Nov 30, 2024 · 0 comments
Assignees
Labels
💳 technical debt Resolve to remove shortcuts taken previously

Comments

@kammce
Copy link
Member

kammce commented Nov 30, 2024

Boost.UT allows the following:

namespace hal {
boost::ut::suite<"bit_bang_i2c"> bit_bang_i2c_test = [] {
};
}  // namespace hal

Removes the need for the extern void test() setup we were doing before. So long as the files are linked into the test binary, they will run and each failure will have the suite title somewhere near it.

The goal is to remove all of these in tests/main.test.cpp unless absolutely needed.

namespace hal {
extern void as_bytes_test();
extern void bit_test();
extern void can_test();
extern void enum_test();
extern void i2c_util_test();
extern void input_pin_util_test();
extern void interrupt_pin_util_test();
extern void map_test();
extern void math_test();
extern void move_interceptor_test();
extern void output_pin_util_test();
extern void overflow_counter_test();
extern void serial_util_test();
extern void spi_util_test();
extern void static_callable_test();
extern void static_list_test();
extern void steady_clock_utility_test();
extern void timeout_test();
extern void units_test();
extern void stream_terminated_test();
extern void parse_stream_test();
extern void find_stream_test();
extern void fill_upto_stream_test();
extern void multi_stream_test();
}  // namespace hal
@kammce kammce added the 💳 technical debt Resolve to remove shortcuts taken previously label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💳 technical debt Resolve to remove shortcuts taken previously
Projects
None yet
Development

No branches or pull requests

2 participants