gleam-lang/gleam

Move shell-script tests that run on CI into Rust

開放

#5,726 建立於 2026年5月18日

 (7 則留言) (0 個反應) (0 位負責人)Rust (960 個分叉)batch import
help wanted

倉庫指標

星標
 (21,417 顆星)
PR 合併指標
 (平均合併 10天 19小時) (30 天內合併 69 個 PR)

描述

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

貢獻者指南