ADTF
|
The ADTF Testing SDK provides some simple functionality to test your ADTF components. It will work with each testing framework you like, we recommend and support the use with Catch2.
The main header to include is:
The main focus of this package is to create functional tests for ADTF components (such as Filter, Streaming Service or System Service) as well as all other ADTF code created with the use of Software Development Kit.
In CMake, just use the provided macro
Now you can access the catch2 Macros within your test scope. Have a look at Test for Demo Data Trigger Plugin for an example usage. If you would like to test Qt based components make sure to pass ENABLE_QT_ENV to the macro.
The test report handling is configured via the following CMake cache variables:
We extended the SDKs with some additional classes for your testing porpuse.
The ADTF System SDK provides following testing helper classes:
To use them, just include following header:
The ADTF Filter SDK provides following testing helper classes:
To use them, just include following header:
For an example please have a look at Testing SDK Examples, especially: