diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index a861ed91..7fc6acd6 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -158,7 +158,7 @@ jobs: uses: actions/checkout@v3 with: repository: google/bloaty - ref: 379d5305670c00c36a57e608079fd253f13bde63 + ref: e1155149d54bb09b81e86f0e4e5cb7fbd2a318eb path: tools/bloaty submodules: recursive - name: Install bloaty diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e086761f..3288a443 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,7 +52,7 @@ jobs: run: ./build/mo_unit_tests --abort - name: Create coverage report run: | - lcov --directory . --capture --output-file coverage.info + lcov --directory . --capture --output-file coverage.info --ignore-errors mismatch lcov --remove coverage.info '/usr/*' '*/tests/*' '*/ArduinoJson.h' --output-file coverage.info lcov --list coverage.info - name: Upload coverage reports to Codecov diff --git a/tests/Api.cpp b/tests/Api.cpp index 41f9f8a6..c2470172 100644 --- a/tests/Api.cpp +++ b/tests/Api.cpp @@ -13,6 +13,8 @@ #include #include "./helpers/testHelper.h" +#include + #define BASE_TIME "2023-01-01T00:00:00.000Z" #define SCPROFILE "[2,\"testmsg\",\"SetChargingProfile\",{\"connectorId\":0,\"csChargingProfiles\":{\"chargingProfileId\":0,\"stackLevel\":0,\"chargingProfilePurpose\":\"ChargePointMaxProfile\",\"chargingProfileKind\":\"Absolute\",\"chargingSchedule\":{\"duration\":1000000,\"startSchedule\":\"2023-01-01T00:00:00.000Z\",\"chargingRateUnit\":\"W\",\"chargingSchedulePeriod\":[{\"startPeriod\":0,\"limit\":16,\"numberPhases\":3}]}}}]" diff --git a/tests/ChargingSessions.cpp b/tests/ChargingSessions.cpp index 1ac9bdef..82090f16 100644 --- a/tests/ChargingSessions.cpp +++ b/tests/ChargingSessions.cpp @@ -16,6 +16,8 @@ #include #include "./helpers/testHelper.h" +#include + #define BASE_TIME "2023-01-01T00:00:00.000Z" using namespace MicroOcpp;