mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2025-04-18 04:46:01 +00:00
Offer easier way to run a test scenario in debug mode
This commit is contained in:
parent
7791e3ca0f
commit
16b543114b
@ -17,7 +17,7 @@
|
||||
"serve:production": "LANYON_ENV=production lanyon serve",
|
||||
"start:production": "npm-run-all build:production serve:production",
|
||||
"start": "lanyon start",
|
||||
"test:isolate:repeated": "test/acceptance.sh main-repeated",
|
||||
"test:debug:main:repeated": "cross-env LOG_LEVEL=7 test/acceptance.sh main-repeated",
|
||||
"test:update": "cross-env SAVE_FIXTURES=true npm run test",
|
||||
"test": "test/acceptance.sh",
|
||||
"upgrade:modules": "next-update --keep true --tldr",
|
||||
|
@ -10,10 +10,10 @@ __root="$(cd "$(dirname "$(dirname "$(dirname "${__dir}")")")" && pwd)"
|
||||
echo "ACCPTST:STDIO_REPLACE_DATETIMES"
|
||||
|
||||
(
|
||||
env LOG_LEVEL=6 bash "${__root}/main.sh" -f dummy -i simple_input -i "input_in_quotes" -i "input with spaces" -i "input with \"quotes\"" -i last_input
|
||||
env LOG_LEVEL="${LOG_LEVEL:-6}" bash "${__root}/main.sh" -f dummy -i simple_input -i "input_in_quotes" -i "input with spaces" -i "input with \"quotes\"" -i last_input
|
||||
) 2>&1 |grep arg_i -A 5
|
||||
|
||||
(
|
||||
env LOG_LEVEL=6 bash "${__root}/main.sh" -x -f dummy -x -x
|
||||
env LOG_LEVEL=6 bash "${__root}/main.sh" -f dummy -xxxx
|
||||
env LOG_LEVEL="${LOG_LEVEL:-6}" bash "${__root}/main.sh" -x -f dummy -x -x
|
||||
env LOG_LEVEL="${LOG_LEVEL:-6}" bash "${__root}/main.sh" -f dummy -xxxx
|
||||
) 2>&1 |grep arg_x
|
||||
|
Loading…
x
Reference in New Issue
Block a user