-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
cargo build | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
cd $SCRIPT_DIR | ||
|
||
TOOLPROOF=$(realpath "$SCRIPT_DIR/target/debug/toolproof") | ||
|
||
cargo run --release -- --placeholders toolproof_path="$TOOLPROOF" -c 1 -i --all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Toolproof runs before_all hooks | ||
|
||
steps: | ||
- step: I have a "misc_file" file with the content "lorem ipsum" | ||
- step: I have a "toolproof.yml" file with the content {yaml} | ||
yaml: |- | ||
before_all: | ||
- command: 'echo " donor" >> misc_file' | ||
- step: I have a "my_test.toolproof.yml" file with the content {yaml} | ||
yaml: |- | ||
name: Inner modified test | ||
steps: | ||
- step: I run "cat %toolproof_test_directory%/misc_file" | ||
- stdout should contain "lorem ipsum donor" | ||
- I run "%toolproof_path% --porcelain" | ||
- snapshot: stdout | ||
snapshot_content: |- | ||
╎Running before_all command: echo " donor" >> misc_file | ||
╎ | ||
╎Running tests | ||
╎ | ||
╎✓ Inner modified test | ||
╎ | ||
╎Finished running tests | ||
╎ | ||
╎Passing tests: 1 | ||
╎Failing tests: 0 | ||
╎Skipped tests: 0 | ||
╎ | ||
╎All tests passed |