maddy/tests
fox.cpp 01c65cfb0e
Finally fix tests
Took way too long.
2025-02-02 13:14:11 +03:00
..
testdata Add integration tests suite for some code paths 2020-02-22 23:06:20 +03:00
basic_test.go Upgrade all dependencies 2025-01-24 21:29:48 +03:00
build_cover.sh tests: Allow to specify the go executable to use 2021-07-10 22:40:50 +03:00
conn.go tests: Change Conn.Expect to not return an error 2021-08-28 15:43:20 +03:00
cover_test.go tests: Allow to run maddyctl commands in integration tests 2025-01-28 23:33:37 +03:00
dovecot_sasl_test.go Merge branch 'master' into dev 2022-07-09 15:00:46 +03:00
dovecot_sasld_test.go Merge branch 'master' into dev 2022-07-09 15:00:46 +03:00
gocovcat.go Fix a few linter warnings + gofmt + goimports 2022-06-23 14:34:57 +03:00
golangci-noisy.yml Add more linters to .golangci.yml 2020-02-28 02:33:48 +03:00
imap_test.go Implement auth_map and storage_map at endpoint level 2023-03-12 13:52:04 +03:00
imapsql_test.go Fix a few linter warnings + gofmt + goimports 2022-06-23 14:34:57 +03:00
issue327_test.go Fix a few linter warnings + gofmt + goimports 2022-06-23 14:34:57 +03:00
limits_test.go Migrate to latest go-smtp version 2024-01-21 14:41:57 +03:00
lmtp_test.go Fix a few linter warnings + gofmt + goimports 2022-06-23 14:34:57 +03:00
mta_test.go Fix a few linter warnings + gofmt + goimports 2022-06-23 14:34:57 +03:00
multiple_domains_test.go Finally fix tests 2025-02-02 13:14:11 +03:00
README.md Implement the integration testing library 2020-02-18 17:38:15 +03:00
replace_addr_test.go Fix a few linter warnings + gofmt + goimports 2022-06-23 14:34:57 +03:00
run.sh tests: Allow to specify the go executable to use 2021-07-10 22:40:50 +03:00
smtp_autobuffer_test.go Fix a few linter warnings + gofmt + goimports 2022-06-23 14:34:57 +03:00
smtp_test.go Merge branch 'master' into dev 2024-01-22 00:43:53 +03:00
stress_test.go Migrate to latest go-smtp version 2024-01-21 14:41:57 +03:00
t.go tests: Fix-up linter nit 2025-01-30 21:50:28 +03:00

maddy integration testing

Tests structure

The test library creates a temporary state and runtime directory, starts the server with the specified configuration file and lets you interact with it using a couple of convenient wrappers.

Running

To run tests, use go test -tags integration in this directory. Make sure to have a maddy executable in the current working directory. Use -integration.executable if the executable is named different or is placed somewhere else. Use -integration.coverprofile to pass -test.coverprofile your_value.RANDOM to test executable. See ./build_cover.sh to build a server executable instrumented with coverage counters.