mirror of
https://github.com/emqx/neuron.git
synced 2026-10-22 01:05:56 +08:00
Test
To run all unit testers
$ cd build
$ ctest --output-on-failure
Introducing coverage statistics using LCOV
Adding parameter -DUSE_GCOV=1 during compilation.
Generate image files .gcno and data files .gcda under build/tests/CMakeFiles/.dir
Execute the following command in the build folder to generate an intermediate file for HTML:
$ lcov --capture --directory . -- output-file testneuron.info --test-name testneuron
Execute the following command in the build folder to generate an HTML file in the result folder under the build folder:
$ genhtml -o result testneuron.info
Open build/result index.html to view coverage statistics report.