Add step to run buildbox unit tests
Description
This adds an additional step to the e2e
test, performed if $BUILDBOX_RUN_UNIT_TESTS
is set, that runs the unit tests for all the buildbox projects.
A separate flag, $BUILDBOX_COMMON_SKIP_UNIT_TESTS
, allows disabling the execution of buildbox-common's unit tests. That option is meant to be used in buildbox-common's CI, where they would have already been run by the time e2e
is invoked.
Changes proposed in this merge request:
- Add
run_buildbox_unit_tests()
function - Check the values of
$BUILDBOX_RUN_UNIT_TESTS
and$BUILDBOX_COMMON_SKIP_UNIT_TESTS
in order to explicitly enable the execution of tests