gleam-lang/gleam

Move shell-script tests that run on CI into Rust

Open

#5,726 opened on 2026年5月18日

GitHub で見る
 (7 comments) (0 reactions) (0 assignees)Rust (960 forks)batch import
help wanted

Repository metrics

Stars
 (21,417 stars)
PR merge metrics
 (平均マージ 10d 19h) (30d で 69 merged PRs)

説明

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);

コントリビューターガイド