Offer easier way to run a test scenario in debug mode

This commit is contained in:
Kevin van Zonneveld 2019-10-29 09:52:34 +01:00
parent 7791e3ca0f
commit 16b543114b
2 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

@ -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