~singpolyma/biboumi

daa7ea04a447d4c67a225eb116c0befc2866ea66 β€” louiz’ 6 years ago 2922c68
Add coverage_e2e, which runs e2e, and regenerate a global coverage report

This coverage is probably more useful than the other one, because it’s not
really reasonable to try to cover everything with simple units test (e.g. on
network code etc).
However, we should strive to have 100% coverage with our e2e tests.
2 files changed, 6 insertions(+), 1 deletions(-)

M .gitlab-ci.yml
M CMakeLists.txt
M .gitlab-ci.yml => .gitlab-ci.yml +2 -1
@@ 85,10 85,11 @@ build:rpm:
    - make biboumi -j$(nproc)
    - make check
    - make coverage
    - mkdir tests_outputs && pushd tests_outputs && make e2e -j$(nproc) -C .. && popd
    - mkdir tests_outputs && pushd tests_outputs && make coverage_e2e -j$(nproc) -C .. && popd
  artifacts:
    paths:
      - build/coverage/
      - build/coverage_e2e/
      - build/tests_outputs/
    when: always


M CMakeLists.txt => CMakeLists.txt +4 -0
@@ 232,6 232,10 @@ if(CMAKE_BUILD_TYPE MATCHES Debug)
    test_suite
    coverage
    )
  SETUP_TARGET_FOR_COVERAGE(coverage_e2e
    make
    coverage_e2e
    e2e)
endif()

#