ci: refs #6695 feat jenkins parallel e2e
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
c7b753a4ef
commit
fa35815683
|
@ -116,7 +116,12 @@ pipeline {
|
||||||
def image = docker.build('lilium-dev', '-f docs/Dockerfile.dev docs')
|
def image = docker.build('lilium-dev', '-f docs/Dockerfile.dev docs')
|
||||||
sh "docker-compose ${env.COMPOSE_PARAMS} up -d"
|
sh "docker-compose ${env.COMPOSE_PARAMS} up -d"
|
||||||
image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ") {
|
image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ") {
|
||||||
sh 'cypress run --browser chromium'
|
// sh 'cypress run --browser chromium'
|
||||||
|
sh '
|
||||||
|
CYPRESS_SPEC_FOLDER="test/cypress/integration"
|
||||||
|
find $CYPRESS_SPEC_FOLDER -name "*.spec.js" | xargs -n 1 -P 4 -I {} sh -c "cypress run --browser chromium --headless --spec '{}'"
|
||||||
|
wait;
|
||||||
|
'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -124,7 +129,7 @@ pipeline {
|
||||||
always {
|
always {
|
||||||
sh "docker-compose ${env.COMPOSE_PARAMS} down"
|
sh "docker-compose ${env.COMPOSE_PARAMS} down"
|
||||||
junit(
|
junit(
|
||||||
testResults: 'junit/e2e.xml',
|
testResults: 'test/cypress/results/*.xml',
|
||||||
allowEmptyResults: true
|
allowEmptyResults: true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,16 +3,22 @@ import { defineConfig } from 'cypress';
|
||||||
// https://docs.cypress.io/app/references/configuration
|
// https://docs.cypress.io/app/references/configuration
|
||||||
// https://www.npmjs.com/package/cypress-mochawesome-reporter
|
// https://www.npmjs.com/package/cypress-mochawesome-reporter
|
||||||
|
|
||||||
let urlHost,
|
let urlHost, reporter, reporterOptions;
|
||||||
reporter,
|
|
||||||
reporterOptions;
|
|
||||||
|
|
||||||
if (process.env.CI) {
|
if (process.env.CI) {
|
||||||
urlHost = 'front';
|
urlHost = 'front';
|
||||||
reporter = 'junit';
|
reporter = 'mocha-multi-reporters';
|
||||||
reporterOptions = {
|
reporterOptions = {
|
||||||
mochaFile: 'junit/e2e.xml',
|
reporterEnabled: 'mocha-junit-reporter, mochawesome',
|
||||||
toConsole: false,
|
mochaJunitReporterReporterOptions: {
|
||||||
|
mochaFile: 'test/cypress/results/junit-[hash].xml', // Evita sobrescritura
|
||||||
|
},
|
||||||
|
mochawesomeReporterOptions: {
|
||||||
|
reportDir: 'test/cypress/results',
|
||||||
|
overwrite: false,
|
||||||
|
html: false,
|
||||||
|
json: false,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
urlHost = 'localhost';
|
urlHost = 'localhost';
|
||||||
|
@ -51,23 +57,7 @@ export default defineConfig({
|
||||||
componentFolder: 'src',
|
componentFolder: 'src',
|
||||||
testFiles: '**/*.spec.js',
|
testFiles: '**/*.spec.js',
|
||||||
supportFile: 'test/cypress/support/unit.js',
|
supportFile: 'test/cypress/support/unit.js',
|
||||||
},/*
|
},
|
||||||
setupNodeEvents: async (on, config) => {
|
|
||||||
const plugin = await import('cypress-mochawesome-reporter/plugin');
|
|
||||||
plugin.default(on);
|
|
||||||
const fs = await import('fs');
|
|
||||||
on('task', {
|
|
||||||
deleteFile(filePath) {
|
|
||||||
if (fs.existsSync(filePath)) {
|
|
||||||
fs.unlinkSync(filePath);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
return config;
|
|
||||||
},*/
|
|
||||||
viewportWidth: 1280,
|
viewportWidth: 1280,
|
||||||
viewportHeight: 720,
|
viewportHeight: 720,
|
||||||
},
|
},
|
||||||
|
|
|
@ -54,6 +54,11 @@
|
||||||
"eslint-plugin-cypress": "^4.1.0",
|
"eslint-plugin-cypress": "^4.1.0",
|
||||||
"eslint-plugin-vue": "^9.32.0",
|
"eslint-plugin-vue": "^9.32.0",
|
||||||
"husky": "^8.0.0",
|
"husky": "^8.0.0",
|
||||||
|
"mocha": "^11.1.0",
|
||||||
|
"mocha-junit-reporter": "^2.2.1",
|
||||||
|
"mocha-multi-reporters": "^1.5.1",
|
||||||
|
"mochawesome": "^7.1.3",
|
||||||
|
"mochawesome-merge": "^5.0.0",
|
||||||
"postcss": "^8.4.23",
|
"postcss": "^8.4.23",
|
||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"sass": "^1.83.4",
|
"sass": "^1.83.4",
|
||||||
|
|
1397
pnpm-lock.yaml
1397
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -5,3 +5,4 @@ downloads/*
|
||||||
storage/*
|
storage/*
|
||||||
reports/*
|
reports/*
|
||||||
docker/logs/*
|
docker/logs/*
|
||||||
|
results/*
|
||||||
|
|
Loading…
Reference in New Issue