Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Pasero <benjamin.pasero@microsoft.com>2021-11-19 13:12:49 +0300
committerBenjamin Pasero <benjamin.pasero@microsoft.com>2021-11-19 13:12:53 +0300
commitddbda4c196baa9dfc43c5da2401f063d4bd76724 (patch)
treef5a7cbf644ad3591a3cff3aa9456936542463ab8 /scripts
parentb8357ede65e5117dd85ad2288002451e674de98d (diff)
tests - enable crash reporter for electron based unit tests
//cc @deepak1556
Diffstat (limited to 'scripts')
-rw-r--r--scripts/test.bat2
-rwxr-xr-xscripts/test.sh6
2 files changed, 5 insertions, 3 deletions
diff --git a/scripts/test.bat b/scripts/test.bat
index 7232c26193c..d45505db8a7 100644
--- a/scripts/test.bat
+++ b/scripts/test.bat
@@ -17,7 +17,7 @@ if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js electron
:: Run tests
set ELECTRON_ENABLE_LOGGING=1
-%CODE% .\test\unit\electron\index.js %*
+%CODE% .\test\unit\electron\index.js --crash-reporter-directory=%~dp0\..\.build\crashes %*
popd
diff --git a/scripts/test.sh b/scripts/test.sh
index 10ffb97c71f..14a72e09cc3 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -21,6 +21,8 @@ else
CODE=".build/electron/$NAME"
fi
+VSCODECRASHDIR=$ROOT/.build/crashes
+
# Node modules
test -d node_modules || yarn
@@ -32,10 +34,10 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
cd $ROOT ; ulimit -n 4096 ; \
ELECTRON_ENABLE_LOGGING=1 \
"$CODE" \
- test/unit/electron/index.js "$@"
+ test/unit/electron/index.js --crash-reporter-directory=$VSCODECRASHDIR "$@"
else
cd $ROOT ; \
ELECTRON_ENABLE_LOGGING=1 \
"$CODE" \
- test/unit/electron/index.js $LINUX_EXTRA_ARGS "$@"
+ test/unit/electron/index.js --crash-reporter-directory=$VSCODECRASHDIR $LINUX_EXTRA_ARGS "$@"
fi