Generate JUnit style report for kernel unit test (#504)

* Add JUnit test report to ut
* Add JUnit test report with make run
* Fix gcc path
pull/503/head^2
alfred gedeon 4 years ago committed by GitHub
parent 63aec3607d
commit c4d8002634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,9 +52,12 @@ $(LIB_DIR)/libunity.so : ${UNITY_SRC_DIR}/unity.c \
Makefile | directories
${CC} -o $@ -shared -fPIC $<
run : $(UNITS) zero_coverage | directories
run : $(UNITS) directories
-rm $(BUILD_DIR)/unit_test_report.txt
for f in $(BIN_DIR)/*; do \
$${f}; done
$${f} | tee -a $(BUILD_DIR)/unit_test_report.txt ; done
cd $(BUILD_DIR) && \
ruby $(UNITY_BIN_DIR)/parse_output.rb -xml $(BUILD_DIR)/unit_test_report.txt
run_col : $(UNITS) zero_coverage | directories
for f in $(BIN_DIR)/*; do \
@ -82,3 +85,4 @@ coverage : run_col
genhtml $(BUILD_DIR)/cmock_test.info --branch-coverage \
--output-directory $(COVERAGE_DIR)

Loading…
Cancel
Save