gleam-lang/gleam

Move shell-script tests that run on CI into Rust

Open

Aperta il 18 mag 2026

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)Rust (21.417 star) (960 fork)batch import
help wanted

Descrizione

We have some tests defined using shell scripts, and most of these only run on CI. Change them to be run as part of cargo test.

To aid with this we could rejig the entrypoint code so we could run CLI commands from within the Rust code, passing the working directory as an argument.

let cd = Utf8PathBuf::from("tests/some_project")
let result = cli::main(cd, ["export", "escript"]);
snapshot!(result);

Guida contributor