testcoverage.sh 319 B

1234567891011121314151617
  1. #!/bin/bash
  2. cd ../build
  3. echo "Building debug build"
  4. cmake -DCMAKE_BUILD_TYPE=Debug ..
  5. make -j4
  6. echo "Executing Test Suite"
  7. bin/unit_testsuite
  8. echo "Generate HTML report"
  9. mkdir -p reports
  10. gcovr -r .. -d -e "build" -e "src/test" --html --html-details -o reports/coverage.html
  11. xdg-open reports/coverage.html
  12. cd ../dev