From 4c6e7740d1d55e15c76bca33bf82f176bc4fac15 Mon Sep 17 00:00:00 2001 From: Ittay Stern Date: Sun, 22 Sep 2019 13:41:36 +0300 Subject: Add memory to Cypress Fixing error: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory Change-Id: Ifa12f3c39bdf29c3211a3c75bcc17876a2af5b85 Issue-ID: VID-647 Signed-off-by: Ittay Stern --- vid-webpack-master/cypress/pipeline/run_group1.sh | 2 +- vid-webpack-master/cypress/pipeline/run_group2.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vid-webpack-master/cypress/pipeline/run_group1.sh b/vid-webpack-master/cypress/pipeline/run_group1.sh index d60b85312..526fd7dec 100644 --- a/vid-webpack-master/cypress/pipeline/run_group1.sh +++ b/vid-webpack-master/cypress/pipeline/run_group1.sh @@ -10,4 +10,4 @@ TESTS_GROUP_FILE=cypress/pipeline/group1.txt cd ${CYPRESS_HOME_DIR} cat ${TESTS_GROUP_FILE} -npm run cypress:headless -- --spec=$(cat ${TESTS_GROUP_FILE} | tr '\n' ',') +npm run cypress:headless --max-old-space-size=4096 -- --spec=$(cat ${TESTS_GROUP_FILE} | tr '\n' ',') diff --git a/vid-webpack-master/cypress/pipeline/run_group2.sh b/vid-webpack-master/cypress/pipeline/run_group2.sh index 2f30fa7df..43cfbc63f 100644 --- a/vid-webpack-master/cypress/pipeline/run_group2.sh +++ b/vid-webpack-master/cypress/pipeline/run_group2.sh @@ -14,4 +14,4 @@ cd ${CYPRESS_HOME_DIR} ls -1 cypress/integration/*/*.e2e.ts | comm -3 - ${TESTS_GROUP_FILE_1} > ${TESTS_GROUP_FILE} cat ${TESTS_GROUP_FILE} -npm run cypress:headless -- --spec=$(cat ${TESTS_GROUP_FILE} | tr '\n' ',') +npm run cypress:headless --max-old-space-size=4096 -- --spec=$(cat ${TESTS_GROUP_FILE} | tr '\n' ',') -- cgit 1.2.3-korg