This repository was archived by the owner on Jul 21, 2021. It is now read-only.
Add integration test framework #200
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First import of integration test capabilities from Kiso's predecessor, based on preceding work by @khalifima (changed and refactored his work a little). Not much effort has been put into upgrading integration test code quality. What you see pretty much how it was sourced. The things we changed are manly cosmetic, one notable exception being the license headers, which were updated to EPL-2.0.
This draft currently only contains a fraction of the original integration test suite (namely only a single Essentials MCU UART test), more tests are to be added later on (in future PRs). The test spec has been updated accordingly.
To build an integration test, you first have to configure your CMake workspace with the
ENABLE_INTEGRATION_TESTINGsetting set toONandKISO_INTEGRATION_TEST_NAMEset to a package containing integration tests.The added test is only available for NUCLEO-F767ZI boards. To build the binary, run
cmakewith targettestentry(or just buildall). As per usual, you can use targetflashto flash the binary.Note
KISO_APPLICATION_NAMEis not needed when configuring withENABLE_INTEGRATION_TESTING = ONand is instead replaced byKISO_INTEGRATION_TEST_NAME. This path points to the package which defines thetestentrybuild target. It expects to find the necessaryCMakeLists.txtfile in${KISO_INTEGRATION_TEST_NAME}/test/integration.Relates to #17.