From 61a1c05d3ac7d555b7b606ac49b2f0c33bde7865 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 2 Dec 2025 11:59:58 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Consistent=20tests=20paths?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/tests/core/test_macros.cpp | 2 +- Marlin/tests/feature/test_runout.cpp | 2 +- Marlin/tests/gcode/test_gcode.cpp | 4 ++-- test/unit_tests.cpp | 2 ++ test/unit_tests.h | 4 ++++ 5 files changed, 10 insertions(+), 4 deletions(-) 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