Skip to content

WIP: Introduce Boost Test for unit testing

Lukas Riedel requested to merge boost-test-for-unit-tests into master

What does this MR do?

Add the Boost Test framework as dependency for testing in DORiE. It is automatically linked to every unit test, but only enabled if correctly included and initialized. Otherwise, this linkage has no effect.

Update test-simulation-base to use Boost Test as an example.

To-do:

  • Add docs on how to write unit tests with Boost Test.
  • Update dependency specs in README.md.

Is there something that needs to be double checked?

It would be great to also use Boost Test for meta-ini unit tests. I will have to figure out how that works, as the Boost Test framework adds its own wrappers around the program main() function and seems to require a special syntax for command line arguments.

Can this MR be accepted?

  • Use Boost Test in build system
  • Adapt test-simulation-base
  • Updated docs
  • Pipeline passing
  • Added entry to CHANGELOG.md

Related issues

#152 (closed)

Edited by Lukas Riedel

Merge request reports