-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nextest-runner] add support for setup scripts (#977)
This is a long-requested feature! Currently landing this in an experimental state, with the aim being to gather feedback before stabilizing it. For more, see https://nexte.st/book/setup-scripts.
- Loading branch information
1 parent
c3b868b
commit d0e897b
Showing
33 changed files
with
3,053 additions
and
195 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
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,4 @@ | ||
REM If this environment variable is set, exit with non-zero. | ||
if defined __NEXTEST_SETUP_SCRIPT_ERROR exit 1 | ||
|
||
ECHO MY_ENV_VAR=my-env-var>> %NEXTEST_ENV% |
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 @@ | ||
#!/bin/bash | ||
|
||
# If this environment variable is set, exit with non-zero. | ||
if [ ! -z "$__NEXTEST_SETUP_SCRIPT_ERROR" ]; then | ||
echo "__NEXTEST_SETUP_SCRIPT_ERROR is set, exiting with 1" | ||
exit 1 | ||
fi | ||
|
||
echo MY_ENV_VAR=my-env-var >> $NEXTEST_ENV |
Oops, something went wrong.