mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Removing grist logs from tests
This commit is contained in:
parent
9da6fec7ad
commit
c7a6784873
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -42,10 +42,10 @@ jobs:
|
|||||||
run: yarn run build:prod
|
run: yarn run build:prod
|
||||||
|
|
||||||
- name: Run smoke test
|
- name: Run smoke test
|
||||||
run: VERBOSE=1 DEBUG=1 MOCHA_WEBDRIVER_HEADLESS=1 yarn run test:smoke
|
run: VERBOSE=1 DEBUG=1 GRIST_LOG_LEVEL=error MOCHA_WEBDRIVER_HEADLESS=1 yarn run test:smoke
|
||||||
|
|
||||||
- name: Run main tests
|
- name: Run main tests
|
||||||
run: VERBOSE=1 DEBUG=1 MOCHA_WEBDRIVER_HEADLESS=1 yarn run test
|
run: VERBOSE=1 DEBUG=1 GRIST_LOG_LEVEL=error MOCHA_WEBDRIVER_HEADLESS=1 yarn run test
|
||||||
|
|
||||||
- name: Update candidate branch
|
- name: Update candidate branch
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
|
@ -33,6 +33,7 @@ docker run --name $DOCKER_CONTAINER --rm \
|
|||||||
-p $PORT:$PORT --env PORT=$PORT \
|
-p $PORT:$PORT --env PORT=$PORT \
|
||||||
--env GRIST_SESSION_COOKIE=grist_test_cookie \
|
--env GRIST_SESSION_COOKIE=grist_test_cookie \
|
||||||
--env GRIST_TEST_LOGIN=1 \
|
--env GRIST_TEST_LOGIN=1 \
|
||||||
|
--env GRIST_LOG_LEVEL=error \
|
||||||
--env TEST_SUPPORT_API_KEY=api_key_for_support \
|
--env TEST_SUPPORT_API_KEY=api_key_for_support \
|
||||||
${TEST_IMAGE:-gristlabs/grist} &
|
${TEST_IMAGE:-gristlabs/grist} &
|
||||||
|
|
||||||
@ -45,10 +46,16 @@ while true; do
|
|||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
echo "[server found]"
|
echo "[server found]"
|
||||||
|
MOCHA=mocha
|
||||||
|
# Test if we have mocha available as a command
|
||||||
|
if ! type $MOCHA > /dev/null 2>&1; then
|
||||||
|
echo "Mocha not found, using from ./node_modules/.bin/mocha"
|
||||||
|
MOCHA=./node_modules/.bin/mocha
|
||||||
|
fi
|
||||||
|
|
||||||
TEST_ADD_SAMPLES=1 TEST_ACCOUNT_PASSWORD=not-needed \
|
TEST_ADD_SAMPLES=1 TEST_ACCOUNT_PASSWORD=not-needed \
|
||||||
HOME_URL=http://localhost:8585 \
|
HOME_URL=http://localhost:8585 \
|
||||||
GRIST_SESSION_COOKIE=grist_test_cookie \
|
GRIST_SESSION_COOKIE=grist_test_cookie \
|
||||||
GRIST_TEST_LOGIN=1 \
|
GRIST_TEST_LOGIN=1 \
|
||||||
NODE_PATH=_build:_build/stubs \
|
NODE_PATH=_build:_build/stubs \
|
||||||
mocha _build/test/nbrowser/*.js "$@"
|
$MOCHA _build/test/nbrowser/*.js "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user