Skip to content

Conversation

@ActoryOu
Copy link
Member

@ActoryOu ActoryOu commented Nov 20, 2024

Fix HTML report generation in ci.yml and release.yml.

Description

It fails to generate HTML report in this repo, refer to line 816 in PR CI result. Remove some unnecessary flags in the ci.yml/release.yml to fix the HTML generation.

Test Steps

Follow ci.yml/release.yml commands to generate the coverage report.

rm -rf build

cmake -S test -B build/ \
-G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Debug \
-DUNITTEST=ON \
-DBUILD_CLONE_SUBMODULES=ON \
-DCMAKE_C_FLAGS='-Wall -Wextra -Werror -DNDEBUG'

make -C build/ all

ctest --test-dir build -E system --output-on-failure

if [ "$?" -eq 0 ]; then
    make -C build/ coverage
    lcov --rc lcov_branch_coverage=1 -r build/coverage.info -o build/coverage.info
    lcov --rc lcov_branch_coverage=1 --list build/coverage.info
fi

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Member

@chinglee-iot chinglee-iot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--coverage is covered in tools/cmock/create_test.cmake already.

@ActoryOu ActoryOu merged commit f52fd8b into FreeRTOS:main Nov 20, 2024
10 checks passed
@ActoryOu ActoryOu deleted the genCoverage branch November 20, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants