ESP-IDF CI / Host Tests (Unity) (push) Successful in 1m8s
CI / firmware-native (push) Successful in 2m57s
Rust Protection Tests / Cargo test (host) (push) Failing after 3m21s
ESP-IDF CI / ESP-IDF Build (v5.4) (push) Failing after 6m55s
ESP-IDF CI / Memory Budget Gate (push) Has been skipped
qa-cicd-environments / qa-kxkm-s3-build (push) Successful in 8m53s
qa-cicd-environments / qa-sim-host (push) Successful in 2m2s
qa-cicd-environments / qa-kxkm-s3-memory-budget (push) Successful in 11m17s
Context: the project archive (KXKM_Batterie_Parallelator-main) had no git history locally; a fresh repository is needed to host it on git.saillant.cc (electron/KXKM_Batterie_Parallelator). Approach: initialize a new repo on branch main, stage the archive content, and harden .gitignore before the first commit. Changes: - Import the full project tree: firmware/, firmware-idf/, firmware-rs/, iosApp/, kxkm-bmu-app/, kxkm-api/, hardware/, docs/, specs/, scripts/, models/, tests/ - Keep project dotfiles tracked despite the trailing '.*' ignore rule: .github/, .claude/, .superpowers/, .gitattributes, .markdownlint.json - Extend .gitignore: firmware/src/credentials.h (local secrets, template kept), kxkm-bmu-app/**/build/ (66 MB compiled iOS framework), .remember/ (session data) Impact: the project can now be maintained on the self-hosted Gitea forge with a clean, secret-free initial history.
1.3 KiB
1.3 KiB
ESP-IDF Host Tests
Tests Unity exécutés sur host (Linux/macOS), pas de hardware. 13 suites, build via cd test && make all ou idf.py build dans la suite.
Running
cd firmware-idf/test
make all # toutes les suites
make test_protection # une suite
Suites
| Suite | Couvre |
|---|---|
test_protection |
State machine V/I/imbalance/lock (13 tests) |
test_ble_victron |
Battery/solar payload encoding |
test_victron_gatt |
GATT encoding (8 tests : V, SOC, alarm, TTG, T) |
test_victron_scan |
Scan parsing (5 tests : solar, battery, expiry, MAC, CID) |
test_vedirect_parser |
VE.Direct frame parsing |
test_ble_soh |
SOH prediction |
test_config_labels |
Battery label management |
test_rint |
R_int calculation |
test_vrm_topics |
VRM topic generation |
Pattern
#include "unity.h"
void setUp(void) {}
void tearDown(void) {}
void test_my_thing(void) { TEST_ASSERT_EQUAL(42, my_func()); }
int main(void) { UNITY_BEGIN(); RUN_TEST(test_my_thing); return UNITY_END(); }
Anti-Patterns
- Ne pas dépendre de
idf.py buildréel — les tests host ont leur propre Makefile - Ne pas lier au stack ESP-IDF complet — stub I2C/BLE manuellement
- Tests hardware (
test_tca_ina) : ERRORED en host est normal, ignorer