move .pl files from tests-pl next to the .toml of the test that uses them

This commit is contained in:
Skgland
2023-12-04 22:16:04 +01:00
committed by Bennet Bleßmann
parent 1c52de9ab1
commit fcf2e2db05
14 changed files with 16 additions and 44 deletions

View File

@@ -2,10 +2,15 @@ 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 add new cli test copy an existing .toml file in `tests/scryer/cli/issues/` or `tests/scryer/cli/issues/src_tests/`,
/// adjust as necessary the `-f` and `--no-add-history` args should be kept but additional args may be added.
/// For input on stdin add a .stdin file with the same filename.
/// Then to generate new reference output files into dump/ run `TRYCMD=dump cargo test -- cli_test`
/// check that the output in the .stdout and .stderr file is as expected, then move them next to the .toml file.
///
/// to re-generate reference output files run `TRYCMD=overwrite cargo test -- cli_test`
/// If a test does not have a .stderr or .stdout the corresponding output is ignored i.e. any and no output is accepted
///
/// to re-generate all 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() {