Skip to content

Commit

Permalink
Put tests back in original order to make review easier
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Jan 16, 2025
1 parent 9713c9b commit 1c17860
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions tests/no_exit_message.rs
Original file line number Diff line number Diff line change
@@ -1,38 +1,5 @@
use super::*;

#[test]
fn no_exit_message() {
Test::new()
.justfile(
"
[no-exit-message]
@hello:
echo 'Hello, World!'
exit 100
",
)
.stdout("Hello, World!\n")
.status(100)
.run();
}

#[test]
fn exit_message() {
Test::new()
.justfile(
"
[exit-message]
@hello:
echo 'Hello, World!'
exit 100
",
)
.stdout("Hello, World!\n")
.status(100)
.stderr("error: Recipe `hello` failed on line 4 with exit code 100\n")
.run();
}

#[test]
fn recipe_exit_message_suppressed() {
Test::new()
Expand Down Expand Up @@ -201,6 +168,39 @@ fn shebang_exit_message_suppressed() {
.run();
}

#[test]
fn no_exit_message() {
Test::new()
.justfile(
"
[no-exit-message]
@hello:
echo 'Hello, World!'
exit 100
",
)
.stdout("Hello, World!\n")
.status(100)
.run();
}

#[test]
fn exit_message() {
Test::new()
.justfile(
"
[exit-message]
@hello:
echo 'Hello, World!'
exit 100
",
)
.stdout("Hello, World!\n")
.status(100)
.stderr("error: Recipe `hello` failed on line 4 with exit code 100\n")
.run();
}

#[test]
fn recipe_exit_message_setting_suppressed() {
Test::new()
Expand Down

0 comments on commit 1c17860

Please sign in to comment.