Draft: test(pcf): Proposal how to bring unit tests and integration tests (on a component level) into CN components
- Use Google Test Framework
- Updated build_pcf file to add --test (builds an runs tests)
Build an run tests:
./build_pcf --build-type Debug --Verbose --test --jobs
Run tests:
Tests are compiled into build/pcf/build/pcf_tests.
The file run_unit_tests
runs all tests. It requires a pcf configuration as first argument.
./run_unit_tests pcf.conf
Features
For each test run the PCF APP and API Server are restarted. Hence, each test is isolated. Setup and Teardown procedures are used to ensure correct initialization and destruction of resources.
Edited by Stefan Spettel