Skip to content

Commit

Permalink
EMA-150 auto test memory optimizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanyi committed Jul 23, 2024
1 parent 98efee2 commit 9809de6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 28 deletions.
14 changes: 0 additions & 14 deletions dev/testv2/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,6 @@ module.exports = defineConfig({
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
/*
on("before:browser:launch", (browser, launchOptions) => {
if (["chrome", "edge"].includes(browser.name)) {
if (browser.isHeadless) {
launchOptions.args.push("--no-sandbox");
launchOptions.args.push("--disable-gl-drawing-for-tests");
launchOptions.args.push("--disable-gpu");
}
}
launchOptions.args.push("--js-flags=--max-old-space-size=8192");
return launchOptions;
});
*/

return require('./cypress/plugins/index.js')(on, config);
},
baseUrl: 'http://magento-test.local/index.php/default/',
Expand Down
2 changes: 1 addition & 1 deletion dev/testv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"postinstall": "if [ -d \"./../../.git\" ]; then npm run copy-git-hooks; fi",
"test": "npm run mocha && npm run code-style",
"e2e": "cypress run --browser edge --headless",
"e2e": "cypress run --browser electron --headless",
"e2e:ci": "cypress run --browser electron --headless --record --key 80ddf60c-0dca-4075-8074-31207092e038",
"e2e:debug": "DEBUG=cypress:* cypress run --browser electron --headless",
"quick-test": "npm run mocha",
Expand Down
8 changes: 3 additions & 5 deletions dev/testv2/tools/docker/Dockerfile-mage-node
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
FROM registry.itg.cloud/itg-commerce/emarsys-magento2-extension-test/cypress:13.6.4
ARG NPM_TOKEN
ENV NPM_TOKEN=${NPM_TOKEN}
# ENV NODE_OPTIONS="--max-old-space-size=16384"

COPY testv2 /test

WORKDIR /test
RUN npm i && \
node --max-old-space-size=16384 && \
./node_modules/.bin/cypress install && \
./node_modules/.bin/cypress verify
RUN npm i
RUN ./node_modules/.bin/cypress install
RUN ./node_modules/.bin/cypress verify


#CMD /usr/local/bin/shell.sh ; sleep infinity
4 changes: 0 additions & 4 deletions dev/testv2/tools/docker/docker-compose-test-elastic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ services:
links:
- magento-test:magento-test.local
- db
deploy:
resources:
limits:
memory: 8G
mailhog:
image: mailhog/mailhog
restart: always
4 changes: 0 additions & 4 deletions dev/testv2/tools/docker/docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ services:
links:
- magento-test:magento-test.local
- db
deploy:
resources:
limits:
memory: 8G
mailhog:
image: mailhog/mailhog
restart: always

0 comments on commit 9809de6

Please sign in to comment.