8000 GitHub - wyeworks/prevtest: Test caching solution for nextest · GitHub
[go: up one dir, main page]

Skip to content
wyeworksPublic

About

Test caching solution for nextest

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

prevtest

prevtest (previous test) is a test caching solution for nextest.

Status

Work in progress.

The main proposal is described in the high-level design document.

So far, prevtest implements only the first increment (binary-based caching).

Installation

From this crate's directory:

cargo install --path . --locked

Usage

Add this to your project's .config/nextest.toml:

experimental = ["wrapper-scripts"]

[scripts.wrapper.prevtest]
command = "prevtest"
target-runner = "overrides-wrapper"

[[profile.default.scripts]]
filter = "all()"
run-wrapper = "prevtest"

Then run:

cargo nextest run

Options

Environment variable Default Description
PREVTEST_FORCE false Run tests even when cached, still updating the cache. Same as --force.
PREVTEST_CACHE_DIR .prevtest/cache Test results.
PREVTEST_STATE_DIR .prevtest/state Machine-local state.
  • Relative directories resolve from the workspace root.
  • Only the cache directory is meant to be saved and restored in CI. The state directory holds information that only applies to the machine that wrote it.

About

Test caching solution for nextest

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0