From b19a76e29760f40fd7174bc54de08afa469311bd Mon Sep 17 00:00:00 2001 From: "Piotr F. Mieszkowski" Date: Sat, 23 Apr 2022 13:13:57 +0200 Subject: [PATCH] Update testing documentation --- doc/testing.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/testing.md b/doc/testing.md index d018770..98c7cec 100644 --- a/doc/testing.md +++ b/doc/testing.md @@ -6,10 +6,17 @@ feed some input to GPG Mailgate and inspect the output. ## Running tests -To run tests, use command `make test` or `make unittest`. +To run tests, use command `make test`. -Tests produce some helpful logs, so inspect contents of `test/logs` directory -if something goes wrong. +There are 3 types of tests: + + * `make e2etest` -- they cover a complete Lacre flow, from feeding it with + an email to accepting its encrypted form; + * `make unittest` -- just small tests of small units of code; + * `make crontest` -- execute cron job with a SQLite database. + +E2E tests (`make e2etest`) should produce some helpful logs, so inspect +contents of `test/logs` directory if something goes wrong. If your system's Python binary isn't found in your `$PATH` or you want to use a specific binary, use make's macro overriding: `make test