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 [2017/05/26 08:44] – [Running the Tests] graf | for_developers:testing [2024/10/08 09:32] (current) – [Testing] 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> | ||
$ ./ | $ ./ | ||
- | $ ./ | + | $ ./ |
- | $ ./ | + | $ ./ |
- | $ ./ | + | $ ./ |
$ ./ | $ ./ | ||
$ ./ | $ ./ | ||
$ ./ | $ ./ | ||
$ ./ | $ ./ | ||
- | $ ./ | + | $ ./ |
</ | </ | ||
+ | |||
+ | 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:: | ||
+ | </ | ||
+ | |||
+ | |||
for_developers/testing.1495781073.txt.gz · Last modified: 2017/05/26 08:44 (external edit)