diff --git a/ci/container/test_component.sh b/ci/container/test_component.sh index d52a56b79..e87c4ca1f 100755 --- a/ci/container/test_component.sh +++ b/ci/container/test_component.sh @@ -110,7 +110,7 @@ if [[ -z "$GITHUB_ACTIONS" ]]; then fi echo "[INFO] Running Tests: Test result: $WORKSPACE/junit.xml" -if ! ${MOCHA_CMD[@]} "$SOURCE_ROOT/test/**/*.js"; then +if ! ${MOCHA_CMD[@]} "$SOURCE_ROOT/test/unit/*.js" "$SOURCE_ROOT/test/integration/*.js"; then echo "[ERROR] Test failed" [[ -f "$WORKSPACE/junit.xml" ]] && cat $WORKSPACE/junit.xml exit 1 diff --git a/ci/test_windows.bat b/ci/test_windows.bat index c6764a8ca..65bbed7f6 100644 --- a/ci/test_windows.bat +++ b/ci/test_windows.bat @@ -73,7 +73,7 @@ start /b python hang_webserver.py 12345 > hang_webserver.out 2>&1 popd echo [INFO] Testing -cmd /c node_modules\.bin\mocha --timeout %TIMEOUT% --recursive --full-trace --color --reporter spec test/**/*.js +cmd /c node_modules\.bin\mocha --timeout %TIMEOUT% --recursive --full-trace --color --reporter spec test/unit/*.js test/integration/*.js if %ERRORLEVEL% NEQ 0 ( echo [ERROR] failed to run mocha exit /b 1