snapshot/

directory
v1.23.10 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT

README

Snapshot testing

This directory contains snapshot tests for Astra. These tests are used to ensure that the output of Astra is consistent and to prevent regressions. The tests are fairly slow right now, so the consideration is to run these in -short mode in the future but for now we can use them as appropriate.

Running the tests

To run the tests, simply run go test ./... in this directory. The tests will run and compare the output of Astra to the expected output. If there are any differences, the test will fail and you will need to update the expected output.

Updating the snapshots

To do this, simply run GENERATE_SNAPSHOTS=true go test ./... and the tests will update the expected output.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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