@@ -5,6 +5,7 @@ all_tests_result=0
55if [ 0 -eq $all_tests_result ]; then
66 echo && echo ' Compiling and running Notecard Test Suite...'
77 g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -std=c++11 -O0 -g \
8+ src/Not_Covered.cpp \
89 src/Notecard.cpp \
910 test/Notecard.test.cpp \
1011 test/mock/mock-arduino.cpp \
3233if [ 0 -eq $all_tests_result ]; then
3334 echo && echo ' Compiling and running NoteI2c_Arduino Test Suite (no flags)...'
3435 g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -std=c++11 -O0 -g \
36+ src/Not_Covered.cpp \
3537 src/NoteI2c_Arduino.cpp \
3638 test/NoteI2c_Arduino.test.cpp \
3739 test/mock/mock-arduino.cpp \
5658if [ 0 -eq $all_tests_result ]; then
5759 echo && echo ' Compiling and running NoteI2c_Arduino Test Suite (-DWIRE_HAS_END)...'
5860 g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -std=c++11 -O0 -g \
61+ src/Not_Covered.cpp \
5962 src/NoteI2c_Arduino.cpp \
6063 test/NoteI2c_Arduino.test.cpp \
6164 test/mock/mock-arduino.cpp \
8184if [ 0 -eq $all_tests_result ]; then
8285 echo && echo ' Compiling and running NoteLog_Arduino Test Suite...'
8386 g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -std=c++11 -O0 -g \
87+ src/Not_Covered.cpp \
8488 src/NoteLog_Arduino.cpp \
8589 test/NoteLog_Arduino.test.cpp \
8690 test/mock/mock-arduino.cpp \
104108if [ 0 -eq $all_tests_result ]; then
105109 echo && echo ' Compiling and running NoteSerial_Arduino Test Suite...'
106110 g++ -fprofile-arcs -ftest-coverage -Wall -Wextra -Werror -Wpedantic -std=c++11 -O0 -g \
111+ src/Not_Covered.cpp \
107112 src/NoteSerial_Arduino.cpp \
108113 test/NoteSerial_Arduino.test.cpp \
109114 test/mock/mock-arduino.cpp \
@@ -129,20 +134,16 @@ if [ 0 -eq ${all_tests_result} ]; then
129134 echo && echo ' All tests have passed!'
130135 # Run coverage if available
131136 if [ $( which gcovr) ]; then
132- gcovr --print-summary --sort-percentage --exclude-throw-branches --delete \
137+ echo " GITHUB_ACTIONS $GITHUB_ACTIONS "
138+ echo " GITHUB_WORKFLOW $GITHUB_WORKFLOW "
139+ echo " GITHUB_RUN_ID $GITHUB_RUN_ID "
140+ echo " GITHUB_SHA $GITHUB_SHA "
141+ gcovr --print-summary --sort-percentage --exclude-throw-branches \
133142 --object-directory . \
134143 --root src \
135144 --exclude .* _error.* \
136145 --exclude test \
137- --coveralls coverage.json \
138- --txt \
139- && rm ./a.out * .gcno
140- if [ ! -f " coverage.json" ]; then
141- echo " Coverage report not produced" ;
142- all_tests_result=997
143- fi
144- else
145- rm -f ./a.out * .gcda * .gcno
146+ --txt
146147 fi
147148else
148149 echo && echo ' TESTS FAILED!!!' \
0 commit comments