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 22, 2024
1 parent 13c1015 commit 299fbaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/testv2/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ 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) {
Expand All @@ -28,6 +29,7 @@ module.exports = defineConfig({
launchOptions.args.push("--js-flags=--max-old-space-size=8192");
return launchOptions;
});
*/

return require('./cypress/plugins/index.js')(on, config);
},
Expand Down
2 changes: 2 additions & 0 deletions dev/testv2/tools/docker/Dockerfile-mage-node
Original file line number Diff line number Diff line change
@@ -1,11 +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

Expand Down

0 comments on commit 299fbaa

Please sign in to comment.