File-oriented testing
inspired by #2191 but for the `run_top_level_test_with_args`s and `run_top_level_test_no_args instead of the `load_module_test`s
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
mod helper;
|
||||
mod issues;
|
||||
mod src_tests;
|
||||
|
||||
/// to generate new reference output files into dump/ run `TRYCMD=dump cargo test -- cli_test`
|
||||
/// check that the output is as expected, then move them next to the .toml file
|
||||
///
|
||||
/// to re-generate reference output files run `TRYCMD=overwrite cargo test -- cli_test`
|
||||
/// then check that the changes are as expected e.g. by looking at the `git diff`
|
||||
#[test]
|
||||
fn cli_tests() {
|
||||
trycmd::TestCases::new()
|
||||
.default_bin_name("scryer-prolog")
|
||||
.case("tests/scryer/cli/issues/*.toml")
|
||||
.skip("tests/scryer/cli/issues/singleton_warning.toml") // wrong line number
|
||||
.case("tests/scryer/cli/src_tests/*.toml");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user