You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note**: For the best experience, always use the latest release of Pizza Test. Visit the [Pizza Test Releases](https://github.com/pizzalogic/pizza-test/releases) page for the latest versions.
@@ -117,6 +107,25 @@ To configure the build system with testing enabled, use the following command:
117
107
meson setup builddir -Dwith_test=enabled
118
108
```
119
109
110
+
#### Tests Double as Samples
111
+
112
+
The `fossil-test` project is designed so that **test cases serve two purposes**:
113
+
114
+
- ✅ **Unit Tests** – validate the framework’s correctness.
115
+
- 📖 **Usage Samples** – demonstrate how to write tests with `fossil-test`.
116
+
117
+
This approach keeps the codebase compact and avoids redundant “hello world” style examples.
118
+
Instead, the same code that proves correctness also teaches usage.
119
+
120
+
This mirrors the **Meson build system** itself, which tests its own functionality by using Meson to build Meson.
121
+
In the same way, `fossil-test` validates itself by demonstrating real-world usage in its own tests.
122
+
123
+
```bash
124
+
meson test -C builddir -v
125
+
```
126
+
127
+
Running the test suite gives you both verification and practical examples you can learn from.
0 commit comments