diff --git a/Marlin/tests/core/test_macros.cpp b/Marlin/tests/core/test_macros.cpp index 75a1e88f71..38d9ae2732 100644 --- a/Marlin/tests/core/test_macros.cpp +++ b/Marlin/tests/core/test_macros.cpp @@ -21,7 +21,7 @@ */ #include "../test/unit_tests.h" -#include +#include "src/core/macros.h" // These represent enabled and disabled configuration options for testing. // They will be used by multiple tests. diff --git a/Marlin/tests/feature/test_runout.cpp b/Marlin/tests/feature/test_runout.cpp index 296e70916d..f3f2183085 100644 --- a/Marlin/tests/feature/test_runout.cpp +++ b/Marlin/tests/feature/test_runout.cpp @@ -24,7 +24,7 @@ #if ENABLED(FILAMENT_RUNOUT_SENSOR) -#include +#include "src/feature/runout.h" MARLIN_TEST(runout, poll_runout_states) { FilamentSensorBase sensor; diff --git a/Marlin/tests/gcode/test_gcode.cpp b/Marlin/tests/gcode/test_gcode.cpp index be364cb905..a64bb2b51f 100644 --- a/Marlin/tests/gcode/test_gcode.cpp +++ b/Marlin/tests/gcode/test_gcode.cpp @@ -21,8 +21,8 @@ */ #include "../test/unit_tests.h" -#include -#include +#include "src/gcode/gcode.h" +#include "src/gcode/parser.h" MARLIN_TEST(gcode, process_parsed_command) { GcodeSuite suite; diff --git a/test/unit_tests.cpp b/test/unit_tests.cpp index 174ad2ef7f..c7aed1fe8c 100644 --- a/test/unit_tests.cpp +++ b/test/unit_tests.cpp @@ -21,6 +21,8 @@ */ /** + * unit_tests.cpp - Unit for running tests in the Marlin/tests/ folder. + * * Provide the main() function used for all compiled unit test binaries. * It collects all the tests defined in the code and runs them through Unity. */ diff --git a/test/unit_tests.h b/test/unit_tests.h index f60c6c1da6..dd63406c9a 100644 --- a/test/unit_tests.h +++ b/test/unit_tests.h @@ -21,6 +21,10 @@ */ #pragma once +/** + * unit_tests.h - Unit Tests class used by cpp files in the Marlin/tests/ folder. + */ + #include #include #include