directory
Version:
v0.33.0
Opens a new window with list of versions in this module.
Published: Nov 19, 2024
License: Apache-2.0
Opens a new window with license information.
README
¶
Behavioral Smoketest Suite
A suite of tests to check that notifications get sent properly.
Setup
- Ensure you have postgres running locally, the test suite will create timestamped databases while running.
Running Tests
Run make smoketest
from the root of the repo to run all tests.
The script will automatically rebuild goalert, including any change migrations.
To run a single test you can use go test
from the smoketest directory.
Creating Tests
- Try to keep the test under 1 minute, where possible.
- Use the latest migration when the test is created.
- Make sure to call
t.Parallel()
and defer h.Close()
in your test.
Directories
¶
Click to show internal directories.
Click to hide internal directories.