docs(contributing): correct the test count, C++ standard and provider paths
The guides still promised nine tests, C++20 and providers under plugins/, which no longer reflects the build.
This commit is contained in:
2 files changed
+14
-7
No files matched your search
+6
-3
@@ -53,7 +53,7 @@ download. Once built:
|
||||
cd build && ctest --output-on-failure
|
||||
```
|
||||
|
||||
There are **9 tests**. Most are unit tests that never touch the system;
|
||||
There are **12 tests**. Most are unit tests that never touch the system;
|
||||
`flatpak-integration-test` is the only one that drives the real flatpak CLI (in
|
||||
an isolated temporary installation), and `app-core-test` checks in particular
|
||||
that every privileged path goes through the password gate — **without ever
|
||||
@@ -69,13 +69,16 @@ replaying a request**, so it can never run pacman as root.
|
||||
| `progress-tracker-test` | reading a tool's output, progress, ANSI |
|
||||
| `package-utils-test` | the shared package utilities |
|
||||
| `plugin-package-test` | the `.fwspacm` package format and its installation |
|
||||
| `app-settings-test` | the preferences model and the journal |
|
||||
| `language-manager-test` | the language: resolution, catalogues, coverage |
|
||||
| `cli-command-test` | the command-line grammar |
|
||||
| `update-manager-test` | version detection and self-update |
|
||||
|
||||
[doc/tests.md](doc/tests.md) details each target and explains how to add one.
|
||||
|
||||
## Code conventions
|
||||
|
||||
- **Language**: C++20, Qt6. Follow the existing stack and conventions before
|
||||
- **Language**: C++17, Qt6. Follow the existing stack and conventions before
|
||||
adding any dependency.
|
||||
- **Formatting**: `.clang-format` (LLVM, 4 spaces, attached braces, 100
|
||||
columns). Run `clang-format -i <file>` before committing.
|
||||
@@ -104,7 +107,7 @@ The split is structural and not negotiable:
|
||||
|
||||
Adding a screen = a `Page` class (see `pages/base/page.h`) and an entry in the
|
||||
sidebar. Adding a package manager = a plugin implementing `IPackageManager` in
|
||||
`plugins/` — **without touching the application** (see
|
||||
`providers/` — **without touching the application** (see
|
||||
[doc/plugins.md](doc/plugins.md)).
|
||||
|
||||
## Workflow
|
||||
|
||||
+8
-4
@@ -53,8 +53,9 @@ framework, pas de téléchargement. Après avoir compilé :
|
||||
cd build && ctest --output-on-failure
|
||||
```
|
||||
|
||||
Ce sont **9 tests**. La plupart sont unitaires et ne touchent pas au système ;
|
||||
`flatpak-integration-test` est le seul à piloter le vrai CLI flatpak(dans une installation temporaire isolée), et `app-core-test` vérifie notamment que
|
||||
Ce sont **12 tests**. La plupart sont unitaires et ne touchent pas au système ;
|
||||
`flatpak-integration-test` est le seul à piloter le vrai CLI flatpak (dans une
|
||||
installation temporaire isolée), et `app-core-test` vérifie notamment que
|
||||
toute action privilégiée passe par la porte du mot de passe — **sans jamais
|
||||
rejouer une requête**, donc sans jamais exécuter pacman en root.
|
||||
|
||||
@@ -68,6 +69,9 @@ rejouer une requête**, donc sans jamais exécuter pacman en root.
|
||||
| `progress-tracker-test` | lecture de la sortie d'un outil, progression, ANSI |
|
||||
| `package-utils-test` | les utilitaires de paquets partagés |
|
||||
| `plugin-package-test` | le format des paquets `.fwspacm` et leur installation |
|
||||
| `app-settings-test` | le modèle des préférences et le journal |
|
||||
| `language-manager-test` | la langue : résolution, catalogues, couverture |
|
||||
| `cli-command-test` | la grammaire de la ligne de commande |
|
||||
| `update-manager-test` | la détection de version et l'auto-mise à jour |
|
||||
|
||||
[doc/tests.md](doc/tests.md) détaille chaque cible et explique comment en
|
||||
@@ -75,7 +79,7 @@ ajouter une.
|
||||
|
||||
## Conventions de code
|
||||
|
||||
- **Langage** : C++20, Qt6. Respecter la stack et les conventions déjà en place
|
||||
- **Langage** : C++17, Qt6. Respecter la stack et les conventions déjà en place
|
||||
avant d'ajouter une dépendance.
|
||||
- **Formatage** : `.clang-format` (LLVM, 4 espaces, accolades attachées,
|
||||
100 colonnes). Lancez `clang-format -i <fichier>` avant de commiter.
|
||||
@@ -105,7 +109,7 @@ La coupure est structurante et ne se négocie pas :
|
||||
|
||||
Ajouter un écran = une classe `Page` (voir `pages/base/page.h`) et une entrée dans la
|
||||
barre latérale. Ajouter un gestionnaire de paquets = un plugin implémentant
|
||||
`IPackageManager` dans `plugins/` — **sans toucher à l'application** (voir
|
||||
`IPackageManager` dans `providers/` — **sans toucher à l'application** (voir
|
||||
[doc/plugins.md](doc/plugins.md)).
|
||||
|
||||
## Flux de travail
|
||||
|
||||
Reference in new issue
Block a user