-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
2,998 additions
and
1,032 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Coverage | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
coverage: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Install LCOV | ||
run: sudo apt install -y lcov | ||
- uses: actions/checkout@v3 | ||
- name: Build project | ||
env: | ||
CC: gcc-9 | ||
CXX: g++-9 | ||
run: | | ||
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTING=ON -DENABLE_COVERAGE=ON | ||
cmake --build build -j | ||
- name: Run tests | ||
run: | | ||
build/tests/FakeIt_tests | ||
- name: Generate report | ||
run: | | ||
cd build/tests/CMakeFiles/FakeIt_tests.dir | ||
gcov-9 *.o | ||
lcov --gcov-tool gcov-9 --directory . -c -o report.info | ||
lcov --gcov-tool gcov-9 --remove report.info '/usr/*' '*/tests/*' -o report_filtered.info | ||
- name: Upload report | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: ./build/tests/CMakeFiles/FakeIt_tests.dir/report_filtered.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Don't generate single header files in your pull request, only modify the original files (the ones inside the `include` folder). | ||
|
||
Add unit tests for your development or at least provide examples on how to test your changes in your pull request. | ||
When submitting a pull request, you should follow these rules: | ||
* Base your developments on the `dev` branch. | ||
* Don't generate single header files in your pull request, only modify the original files (the ones inside the `include` folder). | ||
* Add unit tests for your development or at least provide examples on how to test your changes in your pull request. |
Oops, something went wrong.