DT — Matrice de traçabilité
Objectif : Assurer la couverture exhaustive de chaque exigence NF525 par au moins un cas de test, et identifier les éventuelles lacunes.
1. Vue directe — Exigence → Cas de test
1.1 ISCA — Inaltérabilité (INT)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-INT-001 | Impossibilité de supprimer un ticket/facture validé | §6.3 | TC-INT-001 | Automatisé |
| EX-INT-002 | Impossibilité de modifier un document fiscal signé | §6.3 | TC-INT-002 | Automatisé |
| EX-INT-003 | Traçabilité des annulations (JET 190) | §6.12.1 | TC-INT-003 | Automatisé |
| EX-INT-004 | Traçabilité des retours (partiel, total) | §6.12.1 | TC-INT-004 | Automatisé |
| EX-INT-005 | Traçabilité des modifications de paramétrage | §6.3, §6.12 | TC-INT-005 | Automatisé |
| EX-INT-006 | Absence de mode formation contournant l'enregistrement | §6.3 | TC-INT-006 | Manuel |
| EX-INT-007 | Fonction de vérification d'intégrité accessible | §6.6 | TC-INT-007 | Automatisé |
| EX-INT-008 | Inaltérabilité des clôtures signées | §6.3 | TC-INT-008 | Automatisé |
1.2 ISCA — Sécurisation et signature (SEC)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-SEC-001 | Hash SHA-256 de chaque document fiscal | §6.11.2 | TC-SEC-001 | Automatisé |
| EX-SEC-002 | Signature RSA-PSS 2048 bits | §6.11.3 | TC-SEC-002 | Automatisé |
| EX-SEC-003 | Chaînage cryptographique ISCA | §6.11.3 | TC-SEC-003 | Automatisé |
| EX-SEC-004 | Encodage Base64URL sans padding | §6.11.3 | TC-SEC-004 | Automatisé |
| EX-SEC-005 | Restitution de signature (positions 3, 7, 13, 19) | §6.1.6 | TC-SEC-005 | Automatisé |
| EX-SEC-006 | Affichage extrait signature sur ticket imprimé | §6.1.6 | TC-SEC-006 | Automatisé |
| EX-SEC-007 | Détection de rupture de chaîne | §6.11.4 | TC-SEC-007 | Automatisé |
| EX-SEC-008 | Vérification cryptographique de la signature | §6.11.4 | TC-SEC-008 | Automatisé |
| EX-SEC-009 | Protection des clés cryptographiques | §6.11.3 | TC-SEC-009 | Automatisé |
| EX-SEC-010 | Continuité de la chaîne après incident | §6.11.3 | TC-SEC-010 | Automatisé |
1.3 ISCA — Conservation (CON)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-CON-001 | Conservation 6 ans minimum | §6.14 | TC-CON-001 | Automatisé |
| EX-CON-002 | Synchronisation cloud des données locales | §6.6 | TC-CON-002 | Automatisé |
| EX-CON-003 | Intégrité des données dans le temps | §6.14 | TC-CON-003 | Automatisé |
| EX-CON-004 | Lisibilité sans le logiciel (formats ouverts) | §6.14 | TC-CON-004 | Automatisé |
| EX-CON-005 | Protection contre la purge non purgeable | §6.12.2 | TC-CON-005 | Automatisé |
| EX-CON-006 | Redondance locale + cloud | §6.4, §6.6 | TC-CON-006 | Automatisé |
1.4 ISCA — Archivage (ARF)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-ARF-001 | Archive annuelle automatique | §6.14 | TC-ARF-001 | Automatisé |
| EX-ARF-002 | Contenu exhaustif (R12, R13, R19, GT, journaux) | §6.14 | TC-ARF-002 | Automatisé |
| EX-ARF-003 | Format ZIP signé + MANIFEST.json | §6.14 | TC-ARF-003 | Automatisé |
| EX-ARF-004 | INTEGRITY_REPORT.json avec hashes SHA-256 | §6.14 | TC-ARF-004 | Automatisé |
| EX-ARF-005 | Vérification d'intégrité des archives | §6.14 | TC-ARF-005 | Automatisé |
| EX-ARF-006 | Lisibilité (JSONL structuré par jour) | §6.14 | TC-ARF-006 | Automatisé |
| EX-ARF-007 | Traçabilité des opérations d'archivage (JET) | §6.12.1 | TC-ARF-007 | Automatisé |
| EX-ARF-008 | Conservation des archives 6 ans | §6.14 | TC-ARF-008 | Automatisé |
1.5 Vente et encaissement (VEN)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-VEN-001 | Enregistrement de chaque opération | §6.3 | TC-VEN-001, TC-VEN-003, TC-VEN-006, TC-VEN-007, TC-VEN-008, TC-VEN-012, TC-VEN-013, TC-VEN-014, TC-VEN-015 | Automatisé |
| EX-VEN-002 | Numérotation séquentielle sans interruption | §6.1.4 | TC-VEN-009 | Automatisé |
| EX-VEN-003 | Identification de l'émetteur | §6.1.2 | TC-VEN-011 | Automatisé |
| EX-VEN-004 | Identification de l'opérateur | §6.1.3 | TC-VEN-011 | Automatisé |
| EX-VEN-005 | Horodatage | §6.1.3 | TC-VEN-001 | Automatisé |
| EX-VEN-006 | Signature électronique | §6.11 | TC-VEN-004, TC-VEN-003 | Automatisé |
| EX-VEN-007 | Restitution de la signature | §6.1.6 | TC-VEN-004 | Automatisé |
| EX-VEN-008 | Inaltérabilité | §6.3 | TC-VEN-004, TC-VEN-005 | Automatisé |
| EX-VEN-009 | Traçabilité des annulations | §6.12.1 | TC-VEN-005, TC-VEN-006 | Automatisé |
| EX-VEN-010 | Ventilation TVA | §6.5 | TC-VEN-002, TC-VEN-008, TC-VEN-010, TC-VEN-012, TC-VEN-013 | Automatisé |
1.6 Règlements (REG)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-REG-001 | Enregistrement de chaque paiement | §6.3 | TC-REG-001, TC-REG-004, TC-REG-005, TC-REG-008 | Automatisé |
| EX-REG-002 | Traçabilité des modes de paiement | §6.1.5 | TC-REG-001, TC-REG-002, TC-REG-003, TC-REG-005, TC-REG-007, TC-REG-008 | Automatisé |
| EX-REG-003 | Ventilation par mode de paiement | §6.5 | TC-REG-003, TC-REG-019, TC-REG-021, TC-REG-026 | Automatisé |
| EX-REG-004 | Traçabilité des annulations de paiement | §6.12.1 | TC-REG-006, TC-REG-009, TC-REG-017, TC-REG-018, TC-REG-019, TC-REG-022 | Automatisé |
| EX-REG-005 | Inaltérabilité des règlements | §6.3 | TC-REG-006, TC-REG-017, TC-REG-018 | Automatisé |
| EX-REG-006 | Cartes prépayées : registre signé des mouvements et GT prépayé | §6.20.1 | TC-REG-010, TC-REG-011, TC-REG-012, TC-REG-013, TC-REG-014, TC-REG-015, TC-REG-016 | Automatisé (backend) |
1.7 Facturation et documents R12 (FAC)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-FAC-001 | Numérotation séquentielle et continue | §6.2.5 | TC-FAC-001, TC-FAC-012 | Automatisé |
| EX-FAC-002 | Données conformes au dictionnaire R12 | §6.2.5 | TC-FAC-001, TC-FAC-008, TC-FAC-014, TC-FAC-015, TC-FAC-016, TC-FAC-027 | Automatisé |
| EX-FAC-003 | Original : max 2 exemplaires | §6.2.5 | TC-FAC-003, TC-FAC-013 | Automatisé |
| EX-FAC-004 | Documents amont non modifiables après transformation | §6.2.5 | TC-FAC-004 | Automatisé |
| EX-FAC-005 | Facture d'acompte obligatoire | §6.2.5 | TC-FAC-003, TC-FAC-030 | Automatisé |
| EX-FAC-006 | Distinction biens / services | §6.2.5 | TC-FAC-005 | Automatisé |
| EX-FAC-007 | Avoir obligatoire pour rectification | §6.7.4 | TC-FAC-002 | Automatisé |
| EX-FAC-008 | Signature électronique R12 | §6.11 | TC-FAC-006, TC-FAC-009, TC-FAC-015 | Automatisé |
| EX-FAC-009 | Grands totaux factures | §6.5 | TC-FAC-007 | Automatisé |
| EX-FAC-010 | Inaltérabilité des factures | §6.3 | TC-FAC-002 | Automatisé |
| EX-FAC-011 | Facture issue d'un ticket (unicité, contenu, rattachement, réglages magasin) | §6.2.5 | TC-FAC-008, TC-FAC-010, TC-FAC-011, TC-FAC-012, TC-FAC-021, TC-FAC-022, TC-FAC-024, TC-FAC-026 | Automatisé |
| EX-FAC-012 | Facture web remise par lien (PDF/A-3 Factur-X, lien à usage unique 24 h) | §6.2.5 | TC-FAC-016, TC-FAC-017, TC-FAC-018, TC-FAC-019, TC-FAC-020, TC-FAC-027, TC-FAC-028, TC-FAC-029 | Automatisé |
| EX-FAC-013 | Facture de l'espace fidélité (profil vérifié INSEE/VIES, récapitulatif confirmé, duplicata si déjà facturée, rattachement au compte) | §6.2.5 | TC-FAC-022, TC-FAC-023, TC-FAC-024 | Automatisé |
| EX-FAC-014 | Facture depuis la page publique du ticket (email validé par code, remise par lien, duplicata vers l'email de la facture, sans compte, plafonds anti-relais) | §6.2.5 | TC-FAC-025, TC-FAC-026 | Automatisé |
1.8 Duplicata et réimpressions (DUP)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-DUP-001 | Mention « DUPLICATA » obligatoire | §6.2.5 | TC-DUP-001, TC-DUP-004, TC-FAC-017 | Automatisé |
| EX-DUP-002 | Compteur de réimpressions incrémenté | §6.2.5 | TC-DUP-002, TC-DUP-032 | Automatisé |
| EX-DUP-003 | Signature et chaînage du duplicata | §6.11 | TC-DUP-003, TC-DUP-005, TC-DUP-032 | Automatisé |
| EX-DUP-004 | Référence au document original | §6.2.5 | TC-DUP-001 | Automatisé |
| EX-DUP-005 | Duplicata R12 (factures) signé et chaîné | §6.11 | TC-DUP-005 | Automatisé |
| EX-DUP-006 | Traçabilité (JET codes 140, 145) | §6.12 | TC-DUP-006 | Automatisé |
| EX-DUP-007 | Duplicata accessible depuis le journal de caisse | §6.15.2 | TC-DUP-007, TC-DUP-008 | Automatisé (enrichi — analyse statique backend + frontend) |
1.9 Clôtures et grands totaux (CLO)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-CLO-001 | GTPCA perpétuel signé et chaîné | §6.5 | TC-CLO-001 | Automatisé |
| EX-CLO-002 | GTPVA perpétuel | §6.5 | TC-CLO-001 | Automatisé |
| EX-CLO-003 | GTJ, GTM, GTA, GTE périodiques signés | §6.5 | TC-CLO-002, TC-CLO-003 | Automatisé |
| EX-CLO-004 | Clôture fiscale journalière automatique | §6.5 | TC-CLO-004 | Automatisé (unitaire + e2e-A) |
| EX-CLO-005 | Ticket Z avec compteurs et ventilations | §6.5 | TC-CLO-005, TC-CLO-011, TC-CLO-012 | Automatisé (unitaire + e2e-A) |
| EX-CLO-006 | Régularisation des écarts (JET 160/165) | §6.5 | TC-CLO-006 | Automatisé |
| EX-CLO-007 | Clôture mensuelle et annuelle | §6.5 | TC-CLO-007 | Automatisé (unitaire + e2e-A) |
| EX-CLO-008 | Clôture de caisse (business) | §6.5 | TC-CLO-008 | Automatisé |
| EX-CLO-009 | Inaltérabilité des GT (non modifiables) | §6.3 | TC-CLO-001 | Automatisé |
| EX-CLO-010 | Exhaustivité du GTP factures quel que soit le régime TVA | §6.5.1 | TC-CLO-009, TC-CLO-010 | Automatisé (backend + embarqué) |
1.10 Journal des événements techniques (JET)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-JET-001 | Enregistrement signé et chaîné de chaque événement | §6.12 | TC-JET-001 | Automatisé |
| EX-JET-002 | 45+ codes événements conformes | §6.12.1 | TC-JET-002 | Automatisé |
| EX-JET-003 | Classification purgeable / non purgeable | §6.12.2 | TC-JET-003 | Automatisé |
| EX-JET-004 | Horodatage et identification opérateur/caisse | §6.12 | TC-JET-004 | Automatisé |
| EX-JET-005 | Non-purgeabilité des événements critiques | §6.12.2 | TC-JET-005 | Automatisé (enrichi — analyse statique émission + cohérence NON_PURGEABLE_CODES) |
| EX-JET-006 | Événements de cycle de vie (80, 90, 260) | §6.12 | TC-JET-005, TC-JET-006, TC-JET-007 | Automatisé (enrichi — analyse statique nf525_document_service + checkout + archiveDataIntegrityService) |
| EX-JET-007 | Événements de sécurité (10, 15, 20, 30) | §6.12 | TC-JET-007, TC-JET-008, TC-JET-009 | Automatisé (enrichi — analyse statique archiveDataIntegrityService + jetEventService + jet_event_codes) |
1.11 E-reporting (ERP)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-ERP-001 | Transmission des données de transactions (flux 10.3) | Art. 290 | TC-ERP-001, TC-ERP-002, TC-ERP-008 | Automatisé (backend XML + frontend modèles + e2e-A) |
| EX-ERP-002 | Transmission des données d'encaissements (flux 10.4) | Art. 290 | TC-ERP-003, TC-ERP-008 | Automatisé (backend XML + frontend modèles + e2e-A) |
| EX-ERP-003 | Format XML conforme DGFIP | Décret 2022-1299 | TC-ERP-002, TC-ERP-003, TC-ERP-008 | Automatisé (backend — structure XML XSD, dépôt conforme au swagger Flow Service v1.3.0) |
| EX-ERP-004 | Fréquence selon le régime TVA | Décret 2022-1299 | TC-ERP-004 | Automatisé (backend — 30 tests scheduler) |
| EX-ERP-005 | Traçabilité des transmissions | §6.12 | TC-ERP-005, TC-ERP-007, TC-ERP-009, TC-ERP-013, TC-ERP-014, TC-ERP-020, TC-ERP-021 | Automatisé (enrichi — modèles statuts + complétude + e2e-A cycle de vie + analyse statique backend processPeriod/submitReport/pollFlowStatus + Request-Id et contrôle sha256 du dépôt) |
| EX-ERP-006 | Distinction B2B / B2C | Décret 2022-1299 | TC-ERP-002 | Automatisé (backend CategoryCode + e2e-A distinction B2B/B2C) |
| EX-ERP-007 | Correction et retransmission | Décret 2022-1299 | TC-ERP-006, TC-ERP-009 | Automatisé (enrichi — e2e-A rejet/correction Firestore + analyse statique backend submitCorrection/checkIncompletePeriods + classement des reasonCode d'un rejet) |
| EX-ERP-010 | Réception des flux mis à disposition par la PDP, sans perte ni doublon | XP Z12-013 | TC-ERP-010, TC-ERP-011 | Automatisé (backend — recherche différentielle, lecture par docType, synchronisation incrémentale, PDP simulée) |
1.12 Catalogue et tarification (CAT)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-CAT-001 | Identification unique de chaque article | §6.1 | TC-CAT-001 | Automatisé (unitaire + e2e-A) |
| EX-CAT-002 | Taux de TVA par mode de vente | §6.5 | TC-CAT-002 | Automatisé |
| EX-CAT-003 | Distinction biens / services | §6.2.5 | TC-CAT-003 | Automatisé |
| EX-CAT-004 | Traçabilité des modifications tarifaires (JET 270) | §6.12 | TC-CAT-004, TC-CAT-005 | Automatisé (unitaire + e2e-B) |
1.13 Clients et fidélité (FID)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-FID-001 | Identification client B2B (SIRET, TVA) | §6.2 | TC-FID-001 | Automatisé (enrichi — SIRET CLI-SIR) |
| EX-FID-002 | Distinction B2B / B2C | §6.2 | TC-FID-002 | Automatisé (enrichi — TIE-ADR, JSON anonyme) |
| EX-FID-003 | Traçabilité fidélité dans les documents fiscaux | §6.3 | TC-FID-003, TC-FID-004 | Automatisé (unitaire + e2e-A) |
| EX-FID-004 | Avantages fidélité tracés sur le ticket | §6.3 | TC-FID-005 | Automatisé (unitaire + e2e-A) |
1.14 Utilisateurs et sécurité (USR)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-USR-001 | Identification unique de chaque opérateur | §6.1.3 | TC-USR-001 | Automatisé (enrichi — 9 modèle + 5 analyse statique + 3 E2E-A) |
| EX-USR-002 | Traçabilité des authentifications (JET 10, 15, 20) | §6.12 | TC-USR-002 | Automatisé (5 tests enrichis — codeVendeur/codeOperateur) |
| EX-USR-003 | Séparation des rôles (caissier, manager, admin) | §6.12 | TC-USR-003 | Automatisé (16 tests : VendorRightProfile, hasRight, profils) |
| EX-USR-004 | Opérateur identifié sur chaque document fiscal | §6.1.3 | TC-USR-004 | Automatisé (enrichi — 10 modèle + 3 analyse statique + 3 E2E-A) |
| EX-USR-005 | Changement de caissier tracé (JET 30) | §6.12 | TC-USR-005 | Automatisé (enrichi — 7 modèle + 4 analyse statique + 3 E2E-A) |
1.15 Multi-postes (MPO)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-MPO-001 | Identification unique de chaque poste (codeCaisse) | §6.2 | TC-MPO-001 | Automatisé |
| EX-MPO-002 | Numérotation séquentielle par poste (R13) | §6.2 | TC-MPO-002 | Automatisé (enrichi — 6 modèle + 4 analyse statique + 3 E2E-A) |
| EX-MPO-003 | Numérotation centralisée (R12) | §6.2.5 | TC-MPO-003 | Automatisé |
| EX-MPO-004 | Chaînage indépendant par poste (R13, R19) | §6.11 | TC-MPO-004 | Automatisé (enrichi — 9 modèle + 3 analyse statique + 3 E2E-A) |
| EX-MPO-005 | Grands totaux consolidés multi-postes | §6.5 | TC-MPO-005 | Automatisé (enrichi — 7 modèle + 3 analyse statique + 3 E2E-A) |
| EX-MPO-006 | Événement JET partagé entre postes | §6.12 | TC-MPO-006 | Automatisé (enrichi — 6 modèle + 3 analyse statique + 3 E2E-A) |
1.16 Mode hors-ligne (OFF)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-OFF-001 | Fonctionnement dégradé sans interruption | §6.7 | TC-OFF-001 | Automatisé (enrichi) |
| EX-OFF-002 | Signature locale en mode hors-ligne | §6.11 | TC-OFF-002 | Automatisé (enrichi) |
| EX-OFF-003 | Événements R19 de mode dégradé (70, 120, 125) | §6.12 | TC-OFF-003 | Automatisé (enrichi) |
| EX-OFF-004 | Blocage à J+31 | §6.7 | TC-OFF-004 | Automatisé (enrichi) |
| EX-OFF-005 | Resynchronisation à la reconnexion | §6.6 | TC-OFF-005 | Automatisé |
| EX-OFF-006 | Réconciliation des compteurs | §6.2 | TC-OFF-005 | À automatiser |
1.17 Impression et périphériques (IMP)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-IMP-001 | Mentions obligatoires sur ticket imprimé | §6.1 | TC-IMP-001, TC-IMP-004, TC-IMP-005 | Partiellement automatisé (analyse statique + manuel résiduel) |
| EX-IMP-002 | Traçabilité imprimante (JET 150) | §6.12 | TC-IMP-002 | Automatisé (enrichi) |
| EX-IMP-003 | Impression duplicata avec mention DUPLICATA | §6.2.5 | (couvert par DUP) | Manuel |
| EX-IMP-004 | Impression du ticket Z avec compteurs | §6.5 | TC-IMP-003 | Partiellement automatisé (analyse statique + manuel résiduel) |
1.18 Exports fiscaux et comptables (EXP)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-EXP-001 | Fichier des Écritures Comptables (FEC) | Art. L47 A-I | TC-EXP-001 | Automatisé (enrichi — frontend + e2e-A + analyse statique export comptable) |
| EX-EXP-002 | Z de caisse signé et horodaté | §6.5 | TC-EXP-002 | Automatisé (unitaire + e2e-A) |
| EX-EXP-003 | Journal de caisse chronologique | §6.15.2 | TC-EXP-003 | Automatisé (unitaire + e2e-A) |
| EX-EXP-004 | Traçabilité des exports (JET 110, 180) | §6.12.1 | TC-EXP-004 | Automatisé (unitaire + e2e-A) |
| EX-EXP-005 | Cumul du CA sur toute période | §6.15.2 | TC-EXP-005 | Automatisé (unitaire + e2e-A) |
| EX-EXP-006 | Intégrité des exports (SHA-256) | §6.14 | TC-EXP-002 | Automatisé (unitaire + e2e-A) |
1.19 Administration et configuration (ADM)
| Exigence | Description | §NF525 | Cas de test | Stack de test | Dernier résultat | Date dernière exécution | Fichier de test |
|---|---|---|---|---|---|---|---|
| EX-ADM-001 | Identification de l'assujetti (SIRET, TVA) | §6.2 | TC-ADM-001 | unitaire + e2e-A | passé | 2026-02-23 | integration_test/nf525/administration/administration_e2e_test.dart |
| EX-ADM-002 | Traçabilité des modifications (JET 270, 300, 410) | §6.12 | TC-ADM-002, TC-ADM-005 | unitaire + e2e-A | passé | 2026-02-23 | integration_test/nf525/administration/administration_e2e_test.dart |
| EX-ADM-003 | Versionnement logiciel signé et chaîné | §6.16 | TC-ADM-003 | unitaire | passé | — | test/nf525/services/nf525_certificat_helper_test.dart |
| EX-ADM-004 | Installation de version (JET 250, 255) | §6.12 | TC-ADM-003 | — | — | — | À automatiser (couvert par VRS) |
| EX-ADM-005 | Paramètres de conformité (JET 300) | §6.16 | TC-ADM-005 | unitaire + e2e-A | passé | 2026-02-23 | integration_test/nf525/administration/administration_e2e_test.dart |
| EX-ADM-006 | Changement d'assujetti (JET 128) | §6.12 | TC-ADM-004 | unitaire + e2e-A | passé | 2026-02-23 | integration_test/nf525/administration/administration_e2e_test.dart |
1.20 Mode restaurant (RST)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-RST-001 | Traçabilité des commandes (ticket signé) | §6.3 | TC-RST-001, TC-RST-003 | Automatisé (enrichi — frontend + e2e-A + analyse statique) |
| EX-RST-002 | Changement de table tracé (JET 430) | §6.12 | TC-RST-002 | Automatisé (enrichi — frontend + émission JET 430 au renumérotage (#614) + e2e-A + analyse statique) |
1.21 Borne de commande (BRN)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-BRN-001 | Ticket signé émis par la borne | §6.11, §6.3 | TC-BRN-001, TC-BRN-002 | Automatisé (enrichi — frontend + e2e-A + analyse statique) |
| EX-BRN-002 | Identification du poste (type borne) | §6.2 | TC-BRN-001 | Automatisé (enrichi — frontend + e2e-A + analyse statique) |
1.22 Modèles de données (MOD)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-MOD-001 | Conformité R12 au dictionnaire FIDELE | §6.1 | TC-MOD-006, TC-MOD-012, TC-MOD-013, TC-MOD-014, TC-MOD-015, TC-MOD-018 | Automatisé |
| EX-MOD-002 | Conformité R13 au dictionnaire FIDELE | §6.1 | TC-MOD-001, TC-MOD-002, TC-MOD-003, TC-MOD-008, TC-MOD-009, TC-MOD-010, TC-MOD-011, TC-MOD-016 | Automatisé |
| EX-MOD-003 | Conformité R19 au dictionnaire FIDELE | §6.12 | TC-MOD-007, TC-MOD-017 | Automatisé |
| EX-MOD-004 | Montants en centimes, taux en décimal | §6.1 | TC-MOD-008, TC-MOD-009 | Automatisé |
| EX-MOD-005 | Labels FIDELE normalisés | §6.1 | TC-MOD-001, TC-MOD-006, TC-MOD-018 | Automatisé |
| EX-MOD-006 | Champs de signature communs | §6.11 | TC-MOD-011, TC-MOD-012, TC-MOD-014, TC-MOD-015 | Automatisé |
| EX-MOD-007 | Énumérations R12 conformes | §6.1 | TC-MOD-004 | Automatisé |
| EX-MOD-008 | Énumérations R13 conformes | §6.1 | TC-MOD-005 | Automatisé |
| EX-MOD-009 | buildHashString correct | §6.11.3 | TC-MOD-016 | Automatisé |
| EX-MOD-010 | Sérialisation JSON conforme (toJson) | §6.1 | TC-MOD-001, TC-MOD-003, TC-MOD-007 | Automatisé |
1.23 Signature et chaînage (SIG)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-SIG-001 | RSA-PSS 2048, SHA-256, Base64URL | §6.11.3.3 | TC-SIG-001, TC-SIG-002 | Automatisé |
| EX-SIG-002 | Processus de signature en 7 étapes | §6.11.3 | TC-SIG-002, TC-SIG-004 | Automatisé |
| EX-SIG-003 | Chaînage ISCA | §6.11.3 | TC-SIG-003, TC-SIG-004 | Automatisé |
| EX-SIG-004 | Indicateur de chaînage O/N | §6.11.3 | TC-SIG-003 | Automatisé |
| EX-SIG-005 | Premier document : report=N, sig=secret | §6.11.3 | TC-SIG-004 | Automatisé |
| EX-SIG-006 | Chaînes indépendantes par type | §6.11.3 | TC-SIG-005 | Automatisé |
| EX-SIG-007 | Restitution 4 chars (3, 7, 13, 19) | §6.11.3 | TC-SIG-003 | Automatisé |
| EX-SIG-008 | Validation config crypto au démarrage | §6.11.3 | TC-SIG-001 | Automatisé |
| EX-SIG-009 | Format hash R12 (10 positions) | §6.11.3 | TC-SIG-006 | Automatisé |
| EX-SIG-010 | Format hash R13 ticket | §6.11.3 | (couvert par MOD-001/016) | Automatisé |
| EX-SIG-011 | Format hash R19 JET (8 positions) | §6.11.3 | TC-SIG-006 | Automatisé |
| EX-SIG-012 | Format hash journal caisse (12 positions) | §6.11.3 | TC-SIG-007 | Automatisé |
| EX-SIG-013 | Substitution caractères réservés | §6.11.3 | TC-SIG-008 | Automatisé |
1.24 Base de données embarquée (BDD)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-BDD-001 | Schéma Drift/SQLite v10, 11 tables | §6.4 | TC-BDD-002, TC-BDD-003, TC-BDD-006, TC-BDD-007 | Automatisé |
| EX-BDD-002 | Stockage hybride (colonnes + payload JSON) | §6.4 | TC-BDD-003 | Automatisé |
| EX-BDD-003 | Contrainte UNIQUE numéros de pièce | §6.2 | TC-BDD-003, TC-BDD-006, TC-BDD-007 | Automatisé |
| EX-BDD-004 | Index de performance | §6.4 | TC-BDD-004, TC-BDD-005, TC-BDD-006, TC-BDD-007 | Automatisé |
| EX-BDD-005 | Table Signatures avec chaînage par type | §6.11 | TC-BDD-004 | Automatisé |
| EX-BDD-006 | Table SyncQueue | §6.6 | TC-BDD-005 | Automatisé |
| EX-BDD-007 | Migrations de schéma | §6.4 | (vérification manuelle) | À automatiser (nécessite base in-memory) |
| EX-BDD-008 | Énumérations conformes FIDELE | §6.1 | TC-BDD-001, TC-BDD-002 | Automatisé |
1.25 Synchronisation et centralisation (SYN)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-SYN-001 | Pattern offline-first | §6.6 | TC-SYN-004 | Automatisé |
| EX-SYN-002 | Retry automatique (1s, 3s, 5s) | §6.6 | TC-SYN-004 | Automatisé |
| EX-SYN-003 | Priorités de synchronisation | §6.6 | TC-SYN-005 | Automatisé |
| EX-SYN-004 | Statuts de sync (pending/syncing/synced/failed) | §6.6 | TC-SYN-001 | Automatisé |
| EX-SYN-005 | Mode dégradé (JET 70, 120, 125) | §6.7 | TC-SYN-006 | Automatisé |
| EX-SYN-006 | Blocage J+31 | §6.7 | TC-SYN-007 | Automatisé |
| EX-SYN-007 | Vérification d'intégrité (7 types) | §6.4 | TC-SYN-002, TC-SYN-003, TC-SYN-009 | Automatisé |
| EX-SYN-008 | Documents immuables (PERMISSION_DENIED) | §6.6 | TC-SYN-008 | Automatisé |
| EX-SYN-009 | Journalisation des tentatives (SyncLog) | §6.6 | TC-SYN-004, TC-SYN-008 | Automatisé |
| EX-SYN-010 | Enrichissement payloads (métadonnées) | §6.6 | TC-SYN-009 | Automatisé |
1.26 Compteurs et numérotation (CTR)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-CTR-001 | Numérotation séquentielle sans interruption | §6.2 | TC-CTR-001, TC-CTR-004, TC-CTR-008 | Automatisé |
| EX-CTR-002 | Compteur par type et par périmètre | §6.2 | TC-CTR-002 | Automatisé |
| EX-CTR-003 | Incrémentation atomique (verrou local) | §6.2 | TC-CTR-001 | Automatisé |
| EX-CTR-004 | Incrémentation atomique (transaction Firestore) | §6.2 | TC-CTR-005 | Automatisé |
| EX-CTR-005 | Réconciliation : max(local, remote) + 1 | §6.2, §6.7 | TC-CTR-003 | Automatisé |
| EX-CTR-006 | Format identifiant : préfixe + nf525id + 8 chiffres | §6.5 | TC-CTR-002, TC-CTR-006 | Automatisé |
| EX-CTR-007 | Unicité globale (nf525id ou docprefix) | §6.5 | TC-CTR-005, TC-CTR-009 | Automatisé |
| EX-CTR-008 | Synchronisation compteur avec replaceExisting | §6.6 | TC-CTR-007 | Automatisé |
1.27 Versionnement et périmètre (VRS)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-VRS-001 | Nomenclature M.m.f.N | §6.16 | TC-VRS-002 | Automatisé |
| EX-VRS-002 | Empreinte E1 (périmètre NF525) | §6.16 | TC-VRS-001 | Automatisé |
| EX-VRS-003 | Empreinte E2 (environnement de build) | §6.16 | TC-VRS-005 | Automatisé |
| EX-VRS-004 | Empreinte E3 (cloud functions) | §6.16 | TC-VRS-006 | Automatisé |
| EX-VRS-005 | Signature RSA-PSS des versions | §6.16 | TC-VRS-001 | Automatisé |
| EX-VRS-006 | Traçabilité des mises à jour (JET 250, 255) | §6.12 | TC-VRS-003, TC-VRS-004 | Automatisé |
| EX-VRS-007 | Chaîne de versions (chaque version liée) | §6.16 | TC-VRS-001 | Automatisé |
| EX-VRS-008 | Périmètre fiscal identique toutes déclinaisons | §6.16 | TC-VRS-007 | Automatisé |
1.28 Cartes prépayées (CRT)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-CRT-001 | Crédit prépayé consommable : recharge hors Grand Total, consommation enregistrée | §6.20.1, §6.18.1 | TC-CRT-001, TC-CRT-002 | Automatisé |
| EX-CRT-002 | Ventilation du règlement par carte au Z, sans écriture au journal de caisse | §6.5, §6.18.1 | TC-CRT-002 | Automatisé |
| EX-CRT-003 | Code PIN de carte : création serveur, empreinte seule, saisie chiffrée, blocage après 3 codes faux | §6.11 | TC-CRT-003, TC-CRT-004, TC-CRT-005 | Automatisé |
| EX-CRT-004 | Code PIN hors des données signées | ISCA | TC-CRT-006 | Automatisé |
| EX-CRT-005 | Compatibilité : lecture tolérante (C1) et garde d'activation (C5) | ISCA, §6.1.1 | TC-CRT-007, TC-CRT-008 | Automatisé |
| EX-CRT-006 | Bons BUU : TVA à la vente, remise au taux du bon | §6.3, §6.18.1 | TC-CRT-009 | Automatisé |
| EX-CRT-007 | Paramétrage des cartes tracé au JET 270 | §6.19, [R19] | TC-CRT-010 | Automatisé |
| EX-CRT-008 | Archive : mouvements de carte exclus, traces de valeur archivées | §6.9.2 | TC-CRT-011 | Manuel |
1.29 Mise en compte (MEC)
| Exigence | Description | §NF525 | Cas de test | Automatisation |
|---|---|---|---|---|
| EX-MEC-001 | BL R12 L signé, cohérent, contrôlé par le serveur avant numérotation | §6.3, [R12] | TC-MEC-001, TC-MEC-002 | Automatisé |
| EX-MEC-002 | Mise en compte tracée au JET 430 | §6.19.1.2 | TC-MEC-003 | Automatisé |
| EX-MEC-003 | Plafonds, restrictions et suspension tenus par le serveur | §6.3 | TC-MEC-004 | Automatisé |
| EX-MEC-004 | Facture récapitulative validée par un humain, dans le mois civil | §6.3, art. 289 I-3 CGI | TC-MEC-005 | Automatisé |
| EX-MEC-005 | Compte complet pour la facturation et muni du droit | §6.3 | TC-MEC-006 | Automatisé |
| EX-MEC-006 | Borne : mise en compte sans vendeur, reste débité | §6.3 | TC-MEC-007 | Automatisé |
2. Vue inverse — Cas de test → Exigences
Cette vue permet de détecter les cas de test orphelins (sans exigence associée).
| Cas de test | Module | Exigence(s) couverte(s) |
|---|---|---|
| TC-INT-001 | INT | EX-INT-001 |
| TC-INT-002 | INT | EX-INT-002 |
| TC-INT-003 | INT | EX-INT-003 |
| TC-INT-004 | INT | EX-INT-004 |
| TC-INT-005 | INT | EX-INT-005 |
| TC-INT-006 | INT | EX-INT-006 |
| TC-INT-007 | INT | EX-INT-007 |
| TC-INT-008 | INT | EX-INT-008 |
| TC-SEC-001 | SEC | EX-SEC-001 |
| TC-SEC-002 | SEC | EX-SEC-002 |
| TC-SEC-003 | SEC | EX-SEC-003 |
| TC-SEC-004 | SEC | EX-SEC-004 |
| TC-SEC-005 | SEC | EX-SEC-005 |
| TC-SEC-006 | SEC | EX-SEC-006 |
| TC-SEC-007 | SEC | EX-SEC-007 |
| TC-SEC-008 | SEC | EX-SEC-008 |
| TC-SEC-009 | SEC | EX-SEC-009 |
| TC-SEC-010 | SEC | EX-SEC-010 |
| TC-CON-001 | CON | EX-CON-001 |
| TC-CON-002 | CON | EX-CON-002 |
| TC-CON-003 | CON | EX-CON-003 |
| TC-CON-004 | CON | EX-CON-004 |
| TC-CON-005 | CON | EX-CON-005 |
| TC-CON-006 | CON | EX-CON-006 |
| TC-ARF-001 | ARF | EX-ARF-001 |
| TC-ARF-002 | ARF | EX-ARF-002 |
| TC-ARF-003 | ARF | EX-ARF-003 |
| TC-ARF-004 | ARF | EX-ARF-004 |
| TC-ARF-005 | ARF | EX-ARF-005 |
| TC-ARF-006 | ARF | EX-ARF-006 |
| TC-ARF-007 | ARF | EX-ARF-007 |
| TC-ARF-008 | ARF | EX-ARF-008 |
| TC-VEN-001 | VEN | EX-VEN-001, EX-VEN-005 |
| TC-VEN-002 | VEN | EX-VEN-010 |
| TC-VEN-003 | VEN | EX-VEN-001, EX-VEN-006 |
| TC-VEN-004 | VEN | EX-VEN-006, EX-VEN-007, EX-VEN-008 |
| TC-VEN-005 | VEN | EX-VEN-008, EX-VEN-009 |
| TC-VEN-006 | VEN | EX-VEN-009 |
| TC-VEN-007 | VEN | EX-VEN-001 |
| TC-VEN-008 | VEN | EX-VEN-010 |
| TC-VEN-009 | VEN | EX-VEN-002 |
| TC-VEN-010 | VEN | EX-VEN-010 |
| TC-VEN-011 | VEN | EX-VEN-003, EX-VEN-004 |
| TC-VEN-012 | VEN | EX-VEN-001, EX-VEN-010 |
| TC-VEN-013 | VEN | EX-VEN-001, EX-VEN-010 |
| TC-VEN-014 | VEN | EX-VEN-001 |
| TC-VEN-015 | VEN | EX-VEN-001 |
| TC-REG-001 | REG | EX-REG-001, EX-REG-002 |
| TC-REG-002 | REG | EX-REG-002 |
| TC-REG-003 | REG | EX-REG-003 |
| TC-REG-004 | REG | EX-REG-001 |
| TC-REG-005 | REG | EX-REG-001 |
| TC-REG-006 | REG | EX-REG-004, EX-REG-005 |
| TC-REG-007 | REG | EX-REG-002 |
| TC-REG-008 | REG | EX-REG-001, EX-REG-002 |
| TC-REG-009 | REG | EX-REG-004 |
| TC-REG-010 | REG | EX-REG-006 |
| TC-REG-011 | REG | EX-REG-006 |
| TC-REG-012 | REG | EX-REG-006 |
| TC-REG-013 | REG | EX-REG-006 |
| TC-REG-014 | REG | EX-REG-006 |
| TC-REG-015 | REG | EX-REG-006 |
| TC-REG-016 | REG | EX-REG-006 |
| TC-REG-017 | REG | EX-REG-004, EX-REG-005 |
| TC-REG-018 | REG | EX-REG-004, EX-REG-005 |
| TC-REG-019 | REG | EX-REG-003, EX-REG-004 |
| TC-REG-021 | REG | EX-REG-003 |
| TC-REG-022 | REG | EX-REG-004 |
| TC-REG-026 | REG | EX-REG-003 |
| TC-FAC-001 | FAC | EX-FAC-001, EX-FAC-002 |
| TC-FAC-002 | FAC | EX-FAC-007, EX-FAC-010 |
| TC-FAC-003 | FAC | EX-FAC-003, EX-FAC-005 |
| TC-FAC-004 | FAC | EX-FAC-004 |
| TC-FAC-005 | FAC | EX-FAC-006 |
| TC-FAC-006 | FAC | EX-FAC-008 |
| TC-FAC-007 | FAC | EX-FAC-009 |
| TC-FAC-008 | FAC | EX-FAC-002, EX-FAC-011 |
| TC-FAC-009 | FAC | EX-FAC-008 |
| TC-FAC-010 | FAC | EX-FAC-011 |
| TC-FAC-011 | FAC | EX-FAC-011 |
| TC-FAC-012 | FAC | EX-FAC-001, EX-FAC-011 |
| TC-FAC-013 | FAC | EX-FAC-003 |
| TC-FAC-014 | FAC | EX-FAC-002 |
| TC-FAC-015 | FAC | EX-FAC-002, EX-FAC-008 |
| TC-FAC-016 | FAC | EX-FAC-002, EX-FAC-012 |
| TC-FAC-017 | FAC | EX-FAC-012, EX-DUP-001 |
| TC-FAC-018 | FAC | EX-FAC-012 |
| TC-FAC-019 | FAC | EX-FAC-012 |
| TC-FAC-020 | FAC | EX-FAC-012 |
| TC-FAC-021 | FAC | EX-FAC-011 |
| TC-FAC-022 | FAC | EX-FAC-011, EX-FAC-013 |
| TC-FAC-023 | FAC | EX-FAC-013 |
| TC-FAC-024 | FAC | EX-FAC-011, EX-FAC-013 |
| TC-FAC-025 | FAC | EX-FAC-014 |
| TC-FAC-026 | FAC | EX-FAC-011, EX-FAC-014 |
| TC-FAC-027 | FAC | EX-FAC-002, EX-FAC-012 |
| TC-FAC-030 | FAC | EX-FAC-005, EX-FAC-010 |
| TC-DUP-001 | DUP | EX-DUP-001, EX-DUP-004 |
| TC-DUP-002 | DUP | EX-DUP-002 |
| TC-DUP-003 | DUP | EX-DUP-003 |
| TC-DUP-004 | DUP | EX-DUP-001 |
| TC-DUP-005 | DUP | EX-DUP-003, EX-DUP-005 |
| TC-DUP-006 | DUP | EX-DUP-006 |
| TC-DUP-007 | DUP | EX-DUP-007 |
| TC-DUP-008 | DUP | EX-DUP-007 |
| TC-DUP-032 | DUP | EX-DUP-002, EX-DUP-003 |
| TC-CLO-001 | CLO | EX-CLO-001, EX-CLO-002, EX-CLO-009 |
| TC-CLO-002 | CLO | EX-CLO-003 |
| TC-CLO-003 | CLO | EX-CLO-003 |
| TC-CLO-004 | CLO | EX-CLO-004 |
| TC-CLO-005 | CLO | EX-CLO-005 |
| TC-CLO-006 | CLO | EX-CLO-006 |
| TC-CLO-007 | CLO | EX-CLO-007 |
| TC-CLO-008 | CLO | EX-CLO-008 |
| TC-CLO-009 | CLO | EX-CLO-010 |
| TC-CLO-010 | CLO | EX-CLO-010 |
| TC-CLO-011 | CLO | EX-CLO-005 |
| TC-CLO-012 | CLO | EX-CLO-005 |
| TC-JET-001 | JET | EX-JET-001 |
| TC-JET-002 | JET | EX-JET-002 |
| TC-JET-003 | JET | EX-JET-003 |
| TC-JET-004 | JET | EX-JET-004 |
| TC-JET-005 | JET | EX-JET-005 |
| TC-JET-006 | JET | EX-JET-006 |
| TC-JET-007 | JET | EX-JET-007 |
| TC-JET-008 | JET | EX-JET-002 |
| TC-JET-009 | JET | EX-JET-007 |
| TC-ERP-001 | ERP | EX-ERP-001 |
| TC-ERP-002 | ERP | EX-ERP-002 |
| TC-ERP-003 | ERP | EX-ERP-003 |
| TC-ERP-004 | ERP | EX-ERP-004 |
| TC-ERP-005 | ERP | EX-ERP-005 |
| TC-ERP-006 | ERP | EX-ERP-006 |
| TC-ERP-007 | ERP | EX-ERP-007 |
| TC-ERP-008 | ERP | EX-ERP-001, EX-ERP-002, EX-ERP-003 |
| TC-ERP-009 | ERP | EX-ERP-005, EX-ERP-007 |
| TC-ERP-010 | ERP | EX-ERP-010 |
| TC-ERP-011 | ERP | EX-ERP-010, EX-ERP-005 |
| TC-ERP-013 | ERP | EX-ERP-005 |
| TC-ERP-014 | ERP | EX-ERP-005 |
| TC-ERP-020 | ERP | EX-ERP-005 |
| TC-ERP-021 | ERP | EX-ERP-005 |
| TC-CAT-001 | CAT | EX-CAT-001 |
| TC-CAT-002 | CAT | EX-CAT-002 |
| TC-CAT-003 | CAT | EX-CAT-003 |
| TC-CAT-004 | CAT | EX-CAT-004 |
| TC-CAT-005 | CAT | EX-CAT-004 |
| TC-FID-001 | FID | EX-FID-001 |
| TC-FID-002 | FID | EX-FID-002 |
| TC-FID-003 | FID | EX-FID-003 |
| TC-FID-004 | FID | EX-FID-003 |
| TC-FID-005 | FID | EX-FID-004 |
| TC-USR-001 | USR | EX-USR-001 |
| TC-USR-002 | USR | EX-USR-002 |
| TC-USR-003 | USR | EX-USR-003 |
| TC-USR-004 | USR | EX-USR-004 |
| TC-USR-005 | USR | EX-USR-005 |
| TC-MPO-001 | MPO | EX-MPO-001 |
| TC-MPO-002 | MPO | EX-MPO-002 |
| TC-MPO-003 | MPO | EX-MPO-003 |
| TC-MPO-004 | MPO | EX-MPO-004 |
| TC-MPO-005 | MPO | EX-MPO-005 |
| TC-MPO-006 | MPO | EX-MPO-006 |
| TC-OFF-001 | OFF | EX-OFF-001 |
| TC-OFF-002 | OFF | EX-OFF-002 |
| TC-OFF-003 | OFF | EX-OFF-003 |
| TC-OFF-004 | OFF | EX-OFF-004 |
| TC-OFF-005 | OFF | EX-OFF-005, EX-OFF-006 |
| TC-IMP-001 | IMP | EX-IMP-001 |
| TC-IMP-002 | IMP | EX-IMP-002 |
| TC-IMP-003 | IMP | EX-IMP-004 |
| TC-IMP-004 | IMP | EX-IMP-001 |
| TC-IMP-005 | IMP | EX-IMP-001 |
| TC-EXP-001 | EXP | EX-EXP-001, EX-EXP-004 |
| TC-EXP-002 | EXP | EX-EXP-002, EX-EXP-006 |
| TC-EXP-003 | EXP | EX-EXP-003 |
| TC-EXP-004 | EXP | EX-EXP-004 |
| TC-EXP-005 | EXP | EX-EXP-005 |
| TC-ADM-001 | ADM | EX-ADM-001, EX-ADM-002 |
| TC-ADM-002 | ADM | EX-ADM-002 |
| TC-ADM-003 | ADM | EX-ADM-003, EX-ADM-004 |
| TC-ADM-004 | ADM | EX-ADM-006 |
| TC-ADM-005 | ADM | EX-ADM-005 |
| TC-RST-001 | RST | EX-RST-001 |
| TC-RST-002 | RST | EX-RST-002 |
| TC-RST-003 | RST | EX-RST-001 |
| TC-BRN-001 | BRN | EX-BRN-001, EX-BRN-002 |
| TC-BRN-002 | BRN | EX-BRN-001 |
| TC-MOD-001 | MOD | EX-MOD-002, EX-MOD-005, EX-MOD-010 |
| TC-MOD-002 | MOD | EX-MOD-002, EX-MOD-010 |
| TC-MOD-003 | MOD | EX-MOD-002, EX-MOD-010 |
| TC-MOD-004 | MOD | EX-MOD-007 |
| TC-MOD-005 | MOD | EX-MOD-008 |
| TC-MOD-006 | MOD | EX-MOD-001, EX-MOD-005 |
| TC-MOD-007 | MOD | EX-MOD-003, EX-MOD-010 |
| TC-MOD-008 | MOD | EX-MOD-002, EX-MOD-004 |
| TC-MOD-009 | MOD | EX-MOD-002 |
| TC-MOD-010 | MOD | EX-MOD-002 |
| TC-MOD-011 | MOD | EX-MOD-002, EX-MOD-006 |
| TC-MOD-012 | MOD | EX-MOD-001, EX-MOD-006 |
| TC-MOD-013 | MOD | EX-MOD-001 |
| TC-MOD-014 | MOD | EX-MOD-001, EX-MOD-006 |
| TC-MOD-015 | MOD | EX-MOD-001, EX-MOD-006 |
| TC-MOD-016 | MOD | EX-MOD-002, EX-MOD-009 |
| TC-MOD-017 | MOD | EX-MOD-003 |
| TC-MOD-018 | MOD | EX-MOD-001, EX-MOD-005 |
| TC-SIG-001 | SIG | EX-SIG-001, EX-SIG-008 |
| TC-SIG-002 | SIG | EX-SIG-001, EX-SIG-002 |
| TC-SIG-003 | SIG | EX-SIG-003, EX-SIG-004, EX-SIG-007 |
| TC-SIG-004 | SIG | EX-SIG-002, EX-SIG-003, EX-SIG-005 |
| TC-SIG-005 | SIG | EX-SIG-006 |
| TC-SIG-006 | SIG | EX-SIG-011 |
| TC-SIG-007 | SIG | EX-SIG-012 |
| TC-SIG-008 | SIG | EX-SIG-013 |
| TC-BDD-001 | BDD | EX-BDD-008 |
| TC-BDD-002 | BDD | EX-BDD-008, EX-BDD-001 |
| TC-BDD-003 | BDD | EX-BDD-001, EX-BDD-002, EX-BDD-003 |
| TC-BDD-004 | BDD | EX-BDD-005, EX-BDD-004 |
| TC-BDD-005 | BDD | EX-BDD-006, EX-BDD-004 |
| TC-BDD-006 | BDD | EX-BDD-001, EX-BDD-003 |
| TC-BDD-007 | BDD | EX-BDD-001, EX-BDD-003 |
| TC-SYN-001 | SYN | EX-SYN-004 |
| TC-SYN-002 | SYN | EX-SYN-007 |
| TC-SYN-003 | SYN | EX-SYN-007 |
| TC-SYN-004 | SYN | EX-SYN-001, EX-SYN-002 |
| TC-SYN-005 | SYN | EX-SYN-003 |
| TC-SYN-006 | SYN | EX-SYN-005 |
| TC-SYN-007 | SYN | EX-SYN-006 |
| TC-SYN-008 | SYN | EX-SYN-008 |
| TC-SYN-009 | SYN | EX-SYN-007 |
| TC-CTR-001 | CTR | EX-CTR-001, EX-CTR-003 |
| TC-CTR-002 | CTR | EX-CTR-002, EX-CTR-006 |
| TC-CTR-003 | CTR | EX-CTR-005 |
| TC-CTR-004 | CTR | EX-CTR-001 |
| TC-CTR-005 | CTR | EX-CTR-004, EX-CTR-007 |
| TC-CTR-006 | CTR | EX-CTR-006 |
| TC-CTR-007 | CTR | EX-CTR-008 |
| TC-CTR-008 | CTR | EX-CTR-001 |
| TC-CTR-009 | CTR | EX-CTR-007 |
| TC-VRS-001 | VRS | EX-VRS-002, EX-VRS-005, EX-VRS-007 |
| TC-VRS-002 | VRS | EX-VRS-001 |
| TC-VRS-003 | VRS | EX-VRS-006 |
| TC-VRS-004 | VRS | EX-VRS-006 |
| TC-VRS-005 | VRS | EX-VRS-003 |
| TC-VRS-006 | VRS | EX-VRS-004 |
| TC-VRS-007 | VRS | EX-VRS-008 |
| TC-CRT-001 | CRT | EX-CRT-001 |
| TC-CRT-002 | CRT | EX-CRT-001, EX-CRT-002 |
| TC-CRT-003 | CRT | EX-CRT-003 |
| TC-CRT-004 | CRT | EX-CRT-003 |
| TC-CRT-005 | CRT | EX-CRT-003 |
| TC-CRT-006 | CRT | EX-CRT-004 |
| TC-CRT-007 | CRT | EX-CRT-005 |
| TC-CRT-008 | CRT | EX-CRT-005 |
| TC-CRT-009 | CRT | EX-CRT-006 |
| TC-CRT-010 | CRT | EX-CRT-007 |
| TC-CRT-011 | CRT | EX-CRT-008 |
| TC-MEC-001 | MEC | EX-MEC-001 |
| TC-MEC-002 | MEC | EX-MEC-001 |
| TC-MEC-003 | MEC | EX-MEC-002 |
| TC-MEC-004 | MEC | EX-MEC-003 |
| TC-MEC-005 | MEC | EX-MEC-004 |
| TC-MEC-006 | MEC | EX-MEC-005 |
| TC-MEC-007 | MEC | EX-MEC-006 |
Cas de test orphelins : Aucun. Tous les cas de test sont rattachés à au moins une exigence.
3. Synthèse quantitative
3.1 Par module
| Module | Fichier DT | Exigences | Cas de test | Automatisé | Partiel | À automatiser | Manuel |
|---|---|---|---|---|---|---|---|
| INT | 01 | 8 | 8 | 7 | 0 | 0 | 1 |
| SEC | 02 | 10 | 10 | 10 | 0 | 0 | 0 |
| CON | 03 | 6 | 6 | 6 | 0 | 0 | 0 |
| ARF | 04 | 8 | 8 | 8 | 0 | 0 | 0 |
| VEN | 10 | 10 | 11 | 11 | 0 | 0 | 0 |
| REG | 11 | 6 | 16 | 16 | 0 | 0 | 0 |
| FAC | 12 | 10 | 7 | 7 | 0 | 0 | 0 |
| DUP | 13 | 7 | 8 | 8 | 0 | 0 | 0 |
| CLO | 14 | 9 | 8 | 8 | 0 | 0 | 0 |
| JET | 15 | 7 | 9 | 9 | 0 | 0 | 0 |
| ERP | 16 | 7 | 7 | 7 | 0 | 0 | 0 |
| CAT | 17 | 4 | 5 | 5 | 0 | 0 | 0 |
| FID | 18 | 4 | 5 | 5 | 0 | 0 | 0 |
| USR | 19 | 5 | 5 | 5 | 0 | 0 | 0 |
| MPO | 20 | 6 | 6 | 6 | 0 | 0 | 0 |
| OFF | 21 | 6 | 5 | 5 | 0 | 0 | 0 |
| IMP | 22 | 4 | 3 | 1 | 2 | 0 | 0 |
| EXP | 23 | 6 | 5 | 5 | 0 | 0 | 0 |
| ADM | 24 | 6 | 5 | 5 | 0 | 0 | 0 |
| RST | 25 | 2 | 3 | 3 | 0 | 0 | 0 |
| BRN | 26 | 2 | 2 | 2 | 0 | 0 | 0 |
| CRT | 28 | 8 | 11 | 10 | 0 | 0 | 1 |
| MEC | 29 | 6 | 7 | 7 | 0 | 0 | 0 |
| MOD | 30 | 10 | 18 | 18 | 0 | 0 | 0 |
| SIG | 31 | 13 | 8 | 8 | 0 | 0 | 0 |
| BDD | 32 | 8 | 7 | 7 | 0 | 0 | 0 |
| SYN | 33 | 10 | 9 | 9 | 0 | 0 | 0 |
| CTR | 34 | 8 | 7 | 7 | 0 | 0 | 0 |
| VRS | 35 | 8 | 7 | 7 | 0 | 0 | 0 |
| TOTAL | 204 | 216 | 212 | 2 | 0 | 2 |
3.2 Par catégorie
| Catégorie | Exigences | Cas de test | % couverture auto |
|---|---|---|---|
| ISCA (01-04) | 32 | 32 | 97 % |
| Fonctionnel (10-29) | 115 | 128 | 98 % |
| Technique (30-35) | 57 | 56 | 100 % |
| TOTAL | 204 | 216 | 98 % |
3.3 Par statut d'automatisation
| Statut | Nb cas de test | % |
|---|---|---|
| Automatisé | 212 | 98,1 % |
| Partiellement automatisé | 2 | 0,9 % |
| À automatiser | 0 | 0,0 % |
| Manuel | 2 | 0,9 % |
| TOTAL | 216 | 100 % |
3.4 Par stack de test
| Stack | Description | Nb cas de test | Modules concernés |
|---|---|---|---|
| backend | Tests TypeScript/Jest via Firebase Emulators (Firestore) | 5 | ARF, FAC, DUP, CLO, CTR |
| frontend | Tests unitaires Flutter/Dart (flutter test --tags nf525) | 187 | INT, SEC, CON, ARF, MOD, SIG, BDD, SYN, VRS, VEN, REG, FAC, DUP, CLO, IMP, JET, OFF, EXP, ERP, USR, CAT, FID, MPO, RST, BRN, ADM |
| e2e-A | Tests E2E Flutter + Firestore Emulator seul (CRUD, règles) | 141 | ADM, CAT, FID, CLO, ERP, EXP, IMP, JET, OFF, RST, MPO, USR, BRN |
| e2e-B | Tests E2E Flutter + Hardware mocké (imprimante, TPE) | 5 | CAT |
| e2e-C | Tests E2E Cross-stack (Cloud Functions, synchronisation) | 0 | (à venir) |
| manuel | Tests manuels permanents (vérifications physiques/visuelles) | 7 | IMP, INT |
| non couvert | Exigences sans couverture de test | 0 | (aucune) |
| TOTAL | 343 |
Note : Un même cas de test peut être exécuté sur plusieurs stacks (ex:
unitaire + e2e-Apour ADM). Les totaux par stack comptent les cas de test uniques par stack, non les combinaisons.
3.5 Par référence NF525
| Clause NF525 | Exigences associées | Couverture |
|---|---|---|
| §6.1 (Données) | EX-MOD-001 à 010, EX-VEN-002 à 005, EX-IMP-001, EX-CAT-001, EX-BDD-008, EX-USR-001/004 | 28 |
| §6.2 (Identification) | EX-ADM-001, EX-MPO-001 à 003, EX-CTR-001 à 007, EX-FID-001/002, EX-BRN-002, EX-BDD-003 | 18 |
| §6.3 (Inaltérabilité) | EX-INT-001 à 008, EX-VEN-001/008, EX-REG-005, EX-FAC-010, EX-CLO-009, EX-FID-003, EX-RST-001, EX-BRN-001 | 16 |
| §6.4 (Conservation) | EX-CON-001 à 006, EX-BDD-001/002/004/007, EX-SYN-007 | 11 |
| §6.5 (Clôtures/GT) | EX-VEN-010, EX-REG-003, EX-CLO-001 à 008, EX-EXP-002/005, EX-IMP-004, EX-MPO-005, EX-CTR-006/007 | 17 |
| §6.6 (Centralisation) | EX-CON-002/006, EX-SYN-001 à 010, EX-BDD-006, EX-CTR-008 | 14 |
| §6.7 (Mode dégradé) | EX-OFF-001 à 006, EX-SYN-005/006, EX-CTR-005 | 9 |
| §6.11 (Signature) | EX-SEC-001 à 010, EX-SIG-001 à 013, EX-VEN-006/007, EX-FAC-008, EX-DUP-003/005, EX-MOD-006/009, EX-MPO-004, EX-BDD-005 | 31 |
| §6.12 (JET) | EX-INT-003/004, EX-JET-001 à 007, EX-ADM-002/004/006, EX-DUP-006, EX-EXP-004, EX-VEN-009, EX-REG-004, EX-USR-002/005, EX-RST-002, EX-OFF-003, EX-VRS-006, EX-MOD-003 | 25 |
| §6.14 (Archivage) | EX-ARF-001 à 008, EX-CON-001/003/004, EX-EXP-006 | 12 |
| §6.15.2 (Rapports) | EX-EXP-003/005, EX-DUP-007 | 3 |
| §6.16 (Versionnement) | EX-ADM-003/005, EX-VRS-001 à 008 | 10 |
| Art. 290 (E-reporting) | EX-ERP-001 à 007 | 7 |
| §6.18 (Trésorerie) | EX-CRT-001/002/006 | 3 |
| §6.19 (Métier, JET 430) | EX-MEC-002, EX-CRT-007 | 2 |
| §6.20.1 (Crédit prépayé) | EX-REG-006, EX-CRT-001 | 2 |
| §6.9.2 (Contenu des archives) | EX-CRT-008 | 1 |
| ISCA — compatibilité (D17) | EX-CRT-004/005 | 2 |
| Art. L47 A-I (FEC) | EX-EXP-001 | 1 |
4. Fichiers de test automatisés existants
4.1 Tests embarqués (Flutter/Dart)
| Fichier de test | Exigences couvertes |
|---|---|
test/nf525/models/R13/ticket_test.dart | EX-MOD-002, EX-MOD-005, EX-MOD-009, EX-MOD-010 |
test/nf525/models/R13/note_test.dart | EX-MOD-002, EX-MOD-010 |
test/nf525/models/R13/justificatif_paiement_test.dart | EX-MOD-002, EX-MOD-010, EX-VEN-010 (TC-VEN-013), EX-IMP-001 (TC-IMP-005) |
test/nf525/models/R13/ligne_r13_test.dart | EX-MOD-002, EX-MOD-004 |
test/nf525/models/R13/recapitulatif_tva_test.dart | EX-MOD-002, EX-MOD-004 |
test/nf525/models/R13/reglement_test.dart | EX-MOD-002 |
test/nf525/models/R13/duplicata_r13_test.dart | EX-MOD-002, EX-MOD-006, EX-DUP-001 à 004 |
test/nf525/models/R13/journal_caisse_test.dart | EX-MOD-002, EX-MOD-009, EX-SIG-012 |
test/nf525/models/R13/enums_test.dart | EX-MOD-008 |
test/nf525/models/R12/facture_test.dart | EX-MOD-001, EX-MOD-005, EX-SIG-009 |
test/nf525/models/R12/pied_facture_test.dart | EX-MOD-001 |
test/nf525/models/R12/duplicata_r12_test.dart | EX-MOD-001, EX-MOD-006, EX-DUP-005 |
test/nf525/models/R12/grand_total_facture_test.dart | EX-MOD-001, EX-MOD-006 |
test/nf525/models/R12/grand_total_periodique_facture_test.dart | EX-MOD-001, EX-MOD-006 |
test/nf525/models/R12/client_test.dart | EX-MOD-001, EX-MOD-005 |
test/nf525/models/R12/enums_test.dart | EX-MOD-007 |
test/nf525/models/R19/evenement_jet_test.dart | EX-MOD-003, EX-SIG-011 |
test/nf525/models/R19/enums_test.dart | EX-MOD-003 |
test/nf525/database/nf525_enums_test.dart | EX-BDD-008 |
test/nf525/database/jet_event_codes_test.dart | EX-BDD-008, EX-JET-002 |
test/nf525/database/nf525_r13_documents_table_test.dart | EX-BDD-001, EX-BDD-002, EX-BDD-003 |
test/nf525/database/nf525_signatures_table_test.dart | EX-BDD-004, EX-BDD-005 |
test/nf525/database/nf525_sync_queue_table_test.dart | EX-BDD-004, EX-BDD-006 |
test/nf525/database/nf525_journal_caisse_table_test.dart | EX-BDD-001, EX-BDD-003, EX-BDD-004 |
test/nf525/database/nf525_tickets_z_table_test.dart | EX-BDD-001, EX-BDD-003, EX-BDD-004 |
test/nf525/signature/nf525_crypto_config_test.dart | EX-SIG-001, EX-SIG-008 |
test/nf525/signature/nf525_signature_test.dart | EX-SIG-001, EX-SIG-002 |
test/nf525/signature/nf525_signable_mixin_test.dart | EX-SIG-003, EX-SIG-004, EX-SIG-007, EX-SIG-013 |
test/nf525/signature/services/nf525_signature_service_test.dart | EX-SIG-002, EX-SIG-003, EX-SIG-005, EX-SIG-006 |
test/nf525/services/nf525_certificat_helper_test.dart | EX-VRS-001 à 005, EX-VRS-007, EX-VRS-008, EX-ADM-003, EX-IMP-001 (TC-IMP-004) |
test/nf525/services/nf525_sync_models_test.dart | EX-SYN-004 (enrichi TC-SYN-001) |
test/nf525/services/nf525_data_integrity_report_test.dart | EX-SYN-007 (enrichi TC-SYN-002) |
test/nf525/services/nf525_signature_validation_result_test.dart | EX-SYN-007 (enrichi TC-SYN-003) |
test/nf525/synchronisation/tc_syn_004_offline_first_test.dart | EX-SYN-001, EX-SYN-002, EX-SYN-009 |
test/nf525/synchronisation/tc_syn_005_priorites_test.dart | EX-SYN-003 |
test/nf525/synchronisation/tc_syn_006_mode_degrade_test.dart | EX-SYN-005 |
test/nf525/synchronisation/tc_syn_007_blocage_j31_test.dart | EX-SYN-006 |
functions/src/__tests__/nf525/r13_grand_totaux_rules.test.ts | EX-SYN-008 |
test/nf525/synchronisation/tc_syn_009_integrite_demarrage_test.dart | EX-SYN-007, EX-SYN-009, EX-SYN-010 |
test/nf525/vente_encaissement/vente_encaissement_test.dart | EX-VEN-001, EX-VEN-002, EX-VEN-008, EX-VEN-009, EX-VEN-010 |
test/nf525/reglements/reglements_test.dart | EX-REG-001, EX-REG-002, EX-REG-003, EX-REG-004, EX-REG-005 |
test/nf525/services/nf525_changement_reglement_test.dart | EX-REG-002, EX-REG-003, EX-REG-005 (TC-REG-020) |
test/nf525/facturation/facturation_test.dart | EX-FAC-003, EX-FAC-004, EX-FAC-005 |
test/services/coeur-caisse/account_service_cancel_deposit_test.dart | EX-FAC-005 (TC-FAC-030, annulation d'acompte, #2690) |
test/nf525/duplicata/duplicata_test.dart | EX-DUP-007 (TC-DUP-007 modèle + analyse statique backend, TC-DUP-008 analyse statique exception note) |
test/nf525/clotures/clotures_test.dart | EX-CLO-001, EX-CLO-002, EX-CLO-009 |
test/nf525/journal_evenements/journal_evenements_test.dart | EX-JET-003, EX-JET-004, EX-JET-005, EX-JET-006, EX-JET-007 (64 tests : 38 modèle + 26 analyse statique nf525_document_service, checkout, archiveDataIntegrityService, jetEventService, jet_event_codes) |
integration_test/nf525/journal_evenements/journal_evenements_e2e_test.dart | EX-JET-003, EX-JET-005, EX-JET-006, EX-JET-007 (E2E-A : JET 190/323/90/95/200/205 persistence/signature/buildHashString/filtrage — 15 tests) |
test/nf525/ereporting/ereporting_models_test.dart | EX-ERP-001, EX-ERP-002, EX-ERP-005, EX-ERP-007 (47 tests : 26 modèle + 21 analyse statique ereportingService, pdpApiService, config page Flutter) |
test/nf525/catalogue_tarification/catalogue_tarification_test.dart | EX-CAT-001, EX-CAT-002, EX-CAT-003, EX-CAT-004 |
test/nf525/clients_fidelite/clients_fidelite_test.dart | EX-FID-003 (TC-FID-003, TC-FID-004, TC-FID-005) |
integration_test/nf525/clients_fidelite/clients_fidelite_e2e_test.dart | EX-FID-003, EX-FID-004 (TC-FID-003, TC-FID-004, TC-FID-005) — E2E-A Firestore |
integration_test/nf525/clotures/clotures_e2e_test.dart | EX-CLO-003, EX-CLO-004, EX-CLO-007, EX-CLO-008 (TC-CLO-003, TC-CLO-004, TC-CLO-005, TC-CLO-007) — E2E-A Firestore (13 tests) |
integration_test/nf525/ereporting/ereporting_e2e_test.dart | EX-ERP-001, EX-ERP-002, EX-ERP-005, EX-ERP-006, EX-ERP-007 (TC-ERP-002, TC-ERP-003, TC-ERP-005, TC-ERP-006, TC-ERP-007) — E2E-A Firestore (14 tests) |
integration_test/nf525/exports_fiscaux/exports_fiscaux_e2e_test.dart | EX-EXP-001 à 006 (TC-EXP-001 à 005) — E2E-A Firestore (17 tests : JET 180/110, SHA-256, journal caisse, cumul CA multi-GTJ, GtpEntry) |
test/nf525/utilisateurs_securite/utilisateurs_securite_test.dart | EX-USR-001 à 005 (TC-USR-001, TC-USR-003, TC-USR-004, TC-USR-005) — 54 tests : 42 modèle + 12 analyse statique (checkout.dart, vendorselect.dart, vendeurform.dart) |
integration_test/nf525/utilisateurs_securite/utilisateurs_securite_e2e_test.dart | EX-USR-001, EX-USR-003, EX-USR-005 (TC-USR-001, TC-USR-004, TC-USR-005) — E2E-A Firestore (9 tests) |
test/nf525/inalterabilite/tc_int_001_suppression_ticket_test.dart | EX-INT-001 |
test/nf525/inalterabilite/tc_int_003_annulation_jet190_test.dart | EX-INT-003 |
test/nf525/inalterabilite/tc_int_004_retours_test.dart | EX-INT-004 |
test/nf525/inalterabilite/tc_int_007_integrite_test.dart | EX-INT-007 |
test/nf525/inalterabilite/tc_int_008_inalterabilite_clotures_test.dart | EX-INT-008 |
test/nf525/securisation_signature/tc_sec_004_base64url_test.dart | EX-SEC-004 |
test/nf525/securisation_signature/tc_sec_008_verification_crypto_test.dart | EX-SEC-008 |
test/nf525/securisation_signature/tc_sec_010_continuite_chaine_test.dart | EX-SEC-010 |
test/nf525/conservation/tc_con_001_conservation_6ans_test.dart | EX-CON-001 |
test/nf525/conservation/tc_con_002_synchronisation_cloud_test.dart | EX-CON-002 |
test/nf525/conservation/tc_con_003_integrite_donnees_test.dart | EX-CON-003 |
test/nf525/conservation/tc_con_004_lisibilite_formats_ouverts_test.dart | EX-CON-004 |
test/nf525/conservation/tc_con_005_protection_purge_test.dart | EX-CON-005 |
test/nf525/conservation/tc_con_006_redondance_locale_cloud_test.dart | EX-CON-006 |
test/nf525/archivage/tc_arf_001_generation_automatique_test.dart | EX-ARF-001 |
test/nf525/archivage/tc_arf_002_contenu_exhaustif_test.dart | EX-ARF-002 |
test/nf525/archivage/tc_arf_003_format_zip_signe_test.dart | EX-ARF-003 |
test/nf525/archivage/tc_arf_004_rapport_integrite_test.dart | EX-ARF-004 |
test/nf525/archivage/tc_arf_005_verification_integrite_test.dart | EX-ARF-005 |
test/nf525/archivage/tc_arf_006_lisibilite_jsonl_test.dart | EX-ARF-006 |
test/nf525/archivage/tc_arf_007_tracabilite_jet_test.dart | EX-ARF-007 |
test/nf525/archivage/tc_arf_008_conservation_archives_6ans_test.dart | EX-ARF-008 |
test/nf525/multi_postes/multi_postes_test.dart | EX-MPO-001 à 006 (41 tests : 28 modèle + 13 analyse statique : TC-MPO-002 compteurs isolés checkout 4 tests, TC-MPO-004 GT docId checkout 3 tests, TC-MPO-005 R12 store-level 3 tests, TC-MPO-006 reprise inter-postes 3 tests) |
integration_test/nf525/multi_postes/multi_postes_e2e_test.dart | EX-MPO-002, EX-MPO-004, EX-MPO-005, EX-MPO-006 (E2E-A : Ticket R13 postes P001/P002, GTP nf525Id distincts, Facture R12 centralisation, reprise ticket — 12 tests) |
test/nf525/mode_hors_ligne/mode_hors_ligne_test.dart | EX-OFF-001 à 005 (53 tests : 39 modèle + 14 analyse statique : TC-OFF-001 détection ConnectivityService/JET 70 4 tests, TC-OFF-002 clés locales/Drift 3 tests, TC-OFF-003 JET 120/125/resync 4 tests, TC-OFF-004 timer 31j/BehaviorSubject 3 tests) |
integration_test/nf525/mode_hors_ligne/mode_hors_ligne_e2e_test.dart | EX-OFF-001, EX-OFF-002, EX-OFF-003, EX-OFF-004 (E2E-A : JET 70/120/123/125 persistence/signature/buildHashString, SyncReport round-trip, chaînage — 12 tests) |
test/nf525/impression_peripheriques/impression_peripheriques_test.dart | EX-IMP-001, EX-IMP-002, EX-IMP-004 (38 tests : 28 modèle + 10 analyse statique : TC-IMP-001 structure impression NF525 4 tests, TC-IMP-002 réimpression/duplicata 3 tests, TC-IMP-003 rapport Z XZService 3 tests) |
integration_test/nf525/impression_peripheriques/impression_peripheriques_e2e_test.dart | EX-IMP-002 (E2E-A : JET 150 persistence/signature/buildHashString — 3 tests) |
test/nf525/exports_fiscaux/exports_fiscaux_test.dart | EX-EXP-001, EX-EXP-002, EX-EXP-003, EX-EXP-004, EX-EXP-005, EX-EXP-006 (81 tests : 77 modèle + 4 analyse statique : TC-EXP-001 export comptable AccountingEntry/AccountingPlan/C1/solde 4 tests) |
test/nf525/administration/administration_test.dart | EX-ADM-001 (partiel), EX-ADM-002 (partiel), EX-ADM-005 (partiel), EX-ADM-006 (partiel) |
integration_test/nf525/administration/administration_e2e_test.dart | EX-ADM-001, EX-ADM-002, EX-ADM-005, EX-ADM-006 (E2E-A : JET 410, 270, 300, 128 — 14 tests) |
integration_test/nf525/catalogue_tarification/catalogue_tarification_e2e_test.dart | EX-CAT-001 (E2E-A : persistence Firestore, PLU, barcodes — 6 tests), EX-CAT-004 (E2E-B : calcul poids/prix/tare — 5 tests) |
test/nf525/mode_restaurant/mode_restaurant_test.dart | EX-RST-001, EX-RST-002 (97 tests : 85 modèle + 6 émission JET 430 au renumérotage (TC-RST-002, #614) + 6 analyse statique : TC-RST-001 envoi cuisine/signature 2 tests, TC-RST-002 changeTable/addTicketToTable 2 tests, TC-RST-003 partage/signature 2 tests) |
integration_test/nf525/mode_restaurant/mode_restaurant_e2e_test.dart | EX-RST-001, EX-RST-002 (E2E-A : Ticket R13 restaurant/table/couverts, JET 430 changement table, partage addition 2 tickets — 9 tests) |
test/nf525/borne_commande/borne_commande_test.dart | EX-BRN-001, EX-BRN-002 (44 tests : 38 modèle + 6 analyse statique : TC-BRN-001 envoi cuisine/numéro commande 4 tests, TC-BRN-002 scan fidélité/AccountService 2 tests) |
integration_test/nf525/borne_commande/borne_commande_e2e_test.dart | EX-BRN-001, EX-BRN-002 (TC-BRN-001, TC-BRN-002) — E2E-A Firestore (6 tests) |
test/nf525/compteurs_numerotation/tc_ctr_001_incrementation_sequentielle_test.dart | EX-CTR-001, EX-CTR-003 |
test/nf525/compteurs_numerotation/tc_ctr_002_formats_identifiants_test.dart | EX-CTR-002, EX-CTR-006, EX-CTR-007 |
test/nf525/compteurs_numerotation/tc_ctr_003_reconciliation_test.dart | EX-CTR-005 |
test/nf525/compteurs_numerotation/tc_ctr_004_compteur_hors_ligne_test.dart | EX-CTR-001, EX-CTR-005 |
test/nf525/compteurs_numerotation/tc_ctr_007_sync_replace_existing_test.dart | EX-CTR-008 |
test/nf525/versioning_perimetre/tc_vrs_003_jet_250_version_majeure_test.dart | EX-VRS-006 |
test/nf525/versioning_perimetre/tc_vrs_004_jet_255_version_mineure_test.dart | EX-VRS-006 |
test/nf525/services/nf525_document_service_pieces_coverage_test.dart | EX-VEN-001, EX-VEN-010 (TC-VEN-013) |
4.2 Tests backend (TypeScript/Jest)
| Fichier de test | Exigences couvertes |
|---|---|
functions/src/__tests__/nf525/facturation/tc-fac-models.test.ts | EX-FAC-001, EX-FAC-002, EX-FAC-006, EX-FAC-007, EX-FAC-009, EX-FAC-010 |
functions/src/__tests__/nf525/archivage/tc-arf-models.test.ts | EX-ARF-001, EX-ARF-003 |
functions/src/__tests__/nf525/numerotation/tc-ctr-numberingService.test.ts | EX-CTR-004, EX-CTR-006, EX-CTR-007 |
functions/src/__tests__/nf525/grands-totaux/tc-clo-fac-grandTotalService.test.ts | EX-CLO-003, EX-CLO-008 |
functions/src/__tests__/nf525/duplicata/tc-dup-duplicataService.test.ts | EX-DUP-002, EX-DUP-003, EX-DUP-005, EX-DUP-006 |
functions/src/__tests__/nf525/duplicata/tc-dup-duplicataService-unit.test.ts | EX-DUP-002, EX-DUP-003, EX-DUP-005 |
functions/src/billing-api/services/__tests__/ereportingXmlService.test.ts | EX-ERP-001, EX-ERP-002, EX-ERP-003, EX-ERP-006 |
functions/src/billing-api/services/__tests__/ereportingSchedulerService.test.ts | EX-ERP-004 |
functions/src/billing-api/services/__tests__/ereportingCompleteness.test.ts | EX-ERP-005, EX-ERP-007 |
functions/src/billing-api/services/__tests__/ereportingPdpSearch.test.ts | EX-ERP-010 (TC-ERP-010, 26 tests) |
functions/src/billing-api/services/__tests__/ereportingPdpInbox.test.ts | EX-ERP-010, EX-ERP-005 (TC-ERP-011, 23 tests) |
functions/src/__tests__/nf525/cartes/tc-cart-*.test.ts | EX-REG-006 (TC-REG-010 à 016), EX-CRT-004 (TC-CRT-006) |
functions/src/__tests__/cards/pin.*.test.ts, publicConsultation.forgotPin.test.ts, saleRules.test.ts | EX-CRT-003 (TC-CRT-003, TC-CRT-004) |
functions/src/__tests__/rules/cardPins.rules.test.ts | EX-CRT-003 (TC-CRT-003) |
functions/src/__tests__/cards/activationGate.test.ts, cardsconfig.emulator.test.ts | EX-CRT-005, EX-CRT-007 (TC-CRT-008, TC-CRT-010) |
functions/src/__tests__/mec/signRoute.precheck.test.ts | EX-MEC-001 (TC-MEC-002) |
functions/src/__tests__/mec/authorize.concurrency.emulator.test.ts, counterRules.test.ts, productFilter.golden.test.ts | EX-MEC-003 (TC-MEC-004) |
functions/src/__tests__/mec/billingProposals.*.test.ts, periods.tz.test.ts | EX-MEC-004 (TC-MEC-005) |
functions/src/__tests__/mec/billingComplete.golden.test.ts, accountMec.rules.test.ts | EX-MEC-005 (TC-MEC-006) |
5. Exigences sans couverture automatisée
Les exigences suivantes ne disposent d'aucun test automatisé et requièrent une attention prioritaire :
| Priorité | Exigence | Module | Description | Type de test requis |
|---|---|---|---|---|
6. Exigences NF525 implicites (absentes de la DSF)
Les exigences suivantes découlent directement de la norme NF525 mais ne sont pas explicitement décrites dans la DSF. Elles sont couvertes par les fichiers techniques (30-35) :
| Exigence | Description | Couverture |
|---|---|---|
| EX-SIG-013 | Substitution des caractères réservés dans les chaînes de hash | Automatisé (TC-SIG-008) |
| EX-BDD-007 | Migrations de schéma entre versions de la base | À automatiser |
| EX-SYN-008 | Gestion des documents immuables en écriture Firestore | Automatisé (TC-SYN-008) |
| EX-SYN-010 | Enrichissement des métadonnées d'organisation dans les payloads | Automatisé (TC-SYN-009) |
| EX-CTR-008 | Stratégie replaceExisting pour les compteurs | Automatisé (TC-CTR-007) |