summaryrefslogtreecommitdiffstats
path: root/docs/TESTING.md
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-28 22:55:51 +0100
committersalmonik <salmonik@tuta.io>2026-10-28 22:55:51 +0100
commit87440d5a23f0fd894d949295a7c1ff85043550fc (patch)
tree53b2bada6872b6e565bb79982213616a50419b1c /docs/TESTING.md
parentv0.3.1: clean up dependencies, stale tests and document verification (diff)
downloadzagan-bet-87440d5a23f0fd894d949295a7c1ff85043550fc.tar.gz
zagan-bet-87440d5a23f0fd894d949295a7c1ff85043550fc.zip
v0.4.0: add first-time TLS setup and server help
Diffstat (limited to 'docs/TESTING.md')
-rw-r--r--docs/TESTING.md8
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. 24on a machine where the `openssl` CLI is available.
24 25
25## Manual TUI checklist 26## Manual TUI checklist
26 27
27There is no CI. Run this on Linux and on a Windows VM before a release. 28There is no CI. Run this on Linux and on a Windows VM before a release.
28Use an 80-column terminal because several output lines are width-sensitive. 29Use an 80-column terminal because several output lines are width-sensitive.
29 30
301. Start the server with a valid `identity.p12`, then start the client. 311. Run `cargo run --bin server -- --init` once, then start the server with a
32 valid `identity.p12` and start the client.
312. First contact prints three lines and the 64-character fingerprint does not 332. 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.
333. `register` / `login`: backspace removes one `*` per key, Esc cancels the 353. `register` / `login`: backspace removes one `*` per key, Esc cancels the