This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
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
1 parent
416c7a0
commit 00464c2
Showing
7 changed files
with
215 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,9 @@ | ||
use trycmd::cargo; | ||
|
||
#[test] | ||
fn test_examples() { | ||
trycmd::TestCases::new() | ||
.default_bin_name("quake") | ||
.register_bins(cargo::compile_examples([]).unwrap()) | ||
.case("tests/examples/*.toml"); | ||
} |
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,6 @@ | ||
#[test] | ||
fn test_ui() { | ||
trycmd::TestCases::new() | ||
.default_bin_name("quake") | ||
.case("tests/ui/*.toml"); | ||
} |
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,29 @@ | ||
args = ["--help"] | ||
status.code = 0 | ||
stdout = """ | ||
quake: a meta-build system powered by nushell | ||
Usage: quake [OPTIONS] <TASK> [--] [TASK_ARGS] | ||
quake [OPTIONS] | ||
Subcommands: | ||
list List the available tasks | ||
inspect Dump build script metadata as JSON | ||
Options: | ||
-h, --help Print help | ||
-V, --version Print version | ||
Environment: | ||
--project <PROJECT_DIR> Path to the project root directory | ||
Output handling: | ||
--quiet Suppress the output (stdout and stderr) of any executed commands | ||
--json Output events as a line-delimited JSON objects to stderr. See the JSON appendix in | ||
the manual for the specification of these objects. | ||
Evaluation modes: | ||
--force Execute tasks regardless of initial dirtiness checks | ||
--watch Run the task, and re-run whenever sources have changed | ||
""" | ||
stderr = "" |
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,18 @@ | ||
args = ["inspect", "--help"] | ||
status.code = 0 | ||
stdout = """ | ||
Dump build script metadata as JSON | ||
Usage: quake inspect [OPTIONS] | ||
Options: | ||
-h, --help Print help | ||
Environment: | ||
--project <PROJECT_DIR> Path to the project root directory | ||
Output handling: | ||
--json Output events as a line-delimited JSON objects to stderr. See the JSON appendix in the | ||
manual for the specification of these objects. | ||
""" | ||
stderr = "" |
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,18 @@ | ||
args = ["list", "--help"] | ||
status.code = 0 | ||
stdout = """ | ||
List the available tasks | ||
Usage: quake list [OPTIONS] | ||
Options: | ||
-h, --help Print help | ||
Environment: | ||
--project <PROJECT_DIR> Path to the project root directory | ||
Output handling: | ||
--json Output events as a line-delimited JSON objects to stderr. See the JSON appendix in the | ||
manual for the specification of these objects. | ||
""" | ||
stderr = "" |