.claude/commands/test.md
raw| 1 | --- |
| 2 | description: Run Rspamd unit tests (C/C++ and Lua) |
| 3 | --- |
| 4 | |
| 5 | Run Rspamd unit tests: |
| 6 | |
| 7 | 1. First, ensure the project is built (`ninja -j8 install` in ~/rspamd.build) |
| 8 | 2. Run C/C++ unit tests: `test/rspamd-test-cxx` |
| 9 | 3. Run Lua unit tests: `test/rspamd-test -p /rspamd/lua` |
| 10 | 4. Report results from both test suites |
| 11 | 5. If tests fail, provide details on failures |
| 12 | |
| 13 | **Note**: Functional tests are run manually only, not part of this command. |