diff options
Diffstat (limited to 'docs/TESTING.md')
| -rw-r--r-- | docs/TESTING.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/TESTING.md b/docs/TESTING.md index 6cac6fa..55f5422 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md | |||
| @@ -15,19 +15,21 @@ shared global database. Each test owns its state. | |||
| 15 | | `tests/client_ui.rs` | Help, history, completion, bet parsing, display width, cursor math. | | 15 | | `tests/client_ui.rs` | Help, history, completion, bet parsing, display width, cursor math. | |
| 16 | | `tests/protocol.rs` | Newline buffering and timeout/error classification. | | 16 | | `tests/protocol.rs` | Newline buffering and timeout/error classification. | |
| 17 | | `tests/server_core.rs` | Handler, bcrypt migration, SQL injection, transaction rollback, `plays` audit, sessions. | | 17 | | `tests/server_core.rs` | Handler, bcrypt migration, SQL injection, transaction rollback, `plays` audit, sessions. | |
| 18 | | `tests/server_setup.rs` | `--init` identity generation, PKCS#12 loadability, overwrite refusal. | | ||
| 18 | | `tests/slots.rs` | Server slots payout rules and overflow handling. | | 19 | | `tests/slots.rs` | Server slots payout rules and overflow handling. | |
| 19 | | `tests/storage.rs` | Client/server SQLite storage helpers. | | 20 | | `tests/storage.rs` | Client/server SQLite storage helpers. | |
| 20 | | `tests/tofu.rs` | SPKI fingerprint and TOFU decisions. | | 21 | | `tests/tofu.rs` | SPKI fingerprint and TOFU decisions. | |
| 21 | 22 | ||
| 22 | `tests/tofu.rs` shells out to `openssl`, so run it on a machine where the | 23 | `tests/tofu.rs` and `tests/server_setup.rs` shell out to `openssl`, so run them |
| 23 | `openssl` CLI is available. | 24 | on a machine where the `openssl` CLI is available. |
| 24 | 25 | ||
| 25 | ## Manual TUI checklist | 26 | ## Manual TUI checklist |
| 26 | 27 | ||
| 27 | There is no CI. Run this on Linux and on a Windows VM before a release. | 28 | There is no CI. Run this on Linux and on a Windows VM before a release. |
| 28 | Use an 80-column terminal because several output lines are width-sensitive. | 29 | Use an 80-column terminal because several output lines are width-sensitive. |
| 29 | 30 | ||
| 30 | 1. Start the server with a valid `identity.p12`, then start the client. | 31 | 1. Run `cargo run --bin server -- --init` once, then start the server with a |
| 32 | valid `identity.p12` and start the client. | ||
| 31 | 2. First contact prints three lines and the 64-character fingerprint does not | 33 | 2. First contact prints three lines and the 64-character fingerprint does not |
| 32 | wrap at 80 columns. `Connected to ...` shows a one-decimal ping. | 34 | wrap at 80 columns. `Connected to ...` shows a one-decimal ping. |
| 33 | 3. `register` / `login`: backspace removes one `*` per key, Esc cancels the | 35 | 3. `register` / `login`: backspace removes one `*` per key, Esc cancels the |
