Skip to content

expecttest

This library implements expect tests (also known as "golden" tests). Expect tests are a method of writing tests where instead of hard-coding the expected output of a test, you run the test to get the output, and the test framework automatically populates the expected output. If the output of the test changes, you can rerun the test with the environment variable EXPECTTEST_ACCEPT=1 to automatically update the expected output.

homepage: https://github.com/ezyang/expecttest

Available installations

expecttest version Supported CPU targets Supported GPU targets EESSI version Module
0.1.5 generic: aarch64, x86_64
Arm: a64fx, neoverse_n1, neoverse_v1, nvidia/grace
AMD: zen2, zen3, zen4
Intel: haswell, skylake_avx512, sapphirerapids, icelake, cascadelake
(none) 2023.06 expecttest/0.1.5-GCCcore-12.3.0
0.2.1 generic: aarch64, x86_64
Arm: a64fx, neoverse_n1, neoverse_v1, nvidia/grace
AMD: zen2, zen3, zen4
Intel: haswell, skylake_avx512, sapphirerapids, icelake, cascadelake
(none) 2025.06 expecttest/0.2.1-GCCcore-13.3.0