for_developers:testing
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| for_developers:testing [2019/03/02 17:31] – [Running the Tests] graf | for_developers:testing [2025/06/04 16:03] (current) – [Suppress Logger Output] ursgraf | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Testing ====== | ====== Testing ====== | ||
| - | We use [[https:// | + | We use [[https://google.github.io/googletest/|Google Test]] as our test framework. Read [[https://google.github.io/ | 
| ===== Naming ===== | ===== Naming ===== | ||
| Line 10: | Line 10: | ||
| ===== Running the Tests ===== | ===== Running the Tests ===== | ||
| - | Navigate to the directory '' | + | Make sure to compile the unit tests with the cmake argument '' | 
| <code cpp> | <code cpp> | ||
| $ ./ | $ ./ | ||
| Line 20: | Line 20: | ||
| $ ./ | $ ./ | ||
| $ ./ | $ ./ | ||
| + | $ ./ | ||
| $ ./ | $ ./ | ||
| </ | </ | ||
| - | For the test with the HAL you need to install the [[getting_started: | + | For the test with the HAL you need to install the [[getting_started: | 
| + | |||
| + | ===== Suppress Logger Output ===== | ||
| + | We do not want to mangle output from control blocks or from the safety system with output from the testing framework. If you test a component which uses the logger framework, make sure to set the default stream logger and to set ' | ||
| + | <code cpp> | ||
| + | std:: | ||
| + | eeros:: | ||
| + | </ | ||
| + | |||
| + | ===== Running the Tests with a Script ===== | ||
| + | You can find a script under ''/ | ||
for_developers/testing.1551544281.txt.gz · Last modified: 2019/03/02 17:31 by graf
                
                