Starting test-driven development (TDD) with Unity
- Using PlatformIO's embedded unit testing with native environment - mbed-dependent .cpp files escaped with #ifndef UNIT_TEST - First tests for charger module added under test/ directory
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef UNIT_TEST
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef OLED_ENABLED // otherwise don't compile code to reduce firmware size
|
||||
@@ -132,4 +134,6 @@ void uext_process_1s()
|
||||
oled.display();
|
||||
}
|
||||
|
||||
#endif /* OLED_ENABLED */
|
||||
#endif /* OLED_ENABLED */
|
||||
|
||||
#endif /* UNIT_TEST */
|
||||
|
||||
Reference in New Issue
Block a user