tests

module
v0.0.0-...-5a6ef88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2024 License: Apache-2.0

README

Integration tests

This Go module is the "puppeteer" for our integration tests. It can build wardend and the other parts of our system, execute them, and run some tests.

We use the Go built-in testing framework to write our test cases, under the cases/ folder.

Run tests

To run all the tests:

just test

To list and run only one specific test case:

# list all cases
just list

# run only one case, CreateSpace
just focus CreateSpace

Snapshots

To bootstrap test cases, snapshots for the chain state are available under the testdata/ folder. They allow the test cases to be set up quickly with some pre-determined accounts, Spaces, Keychains, etc.

It's important to be able to regenerate snaphots when needed. All the recipes for snapshot must be included in the justfile.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL