This commit is contained in:
parent
9350c512ff
commit
22a173b7f7
|
@ -97,7 +97,7 @@ pipeline {
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
junit(
|
junit(
|
||||||
testResults: 'junitresults.xml',
|
testResults: 'junit/vitest.xml',
|
||||||
allowEmptyResults: true
|
allowEmptyResults: true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@ 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 --spec test/cypress/integration/claim/claimAction.spec.js'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ pipeline {
|
||||||
always {
|
always {
|
||||||
sh "docker-compose ${env.COMPOSE_PARAMS} down"
|
sh "docker-compose ${env.COMPOSE_PARAMS} down"
|
||||||
junit(
|
junit(
|
||||||
testResults: 'e2e-junitresults.xml',
|
testResults: 'junit/cypress.xml',
|
||||||
allowEmptyResults: true
|
allowEmptyResults: true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,16 +4,14 @@ import { defineConfig } from 'cypress';
|
||||||
// https://www.npmjs.com/package/cypress-mochawesome-reporter
|
// https://www.npmjs.com/package/cypress-mochawesome-reporter
|
||||||
|
|
||||||
let urlHost,
|
let urlHost,
|
||||||
browser,
|
|
||||||
reporter,
|
reporter,
|
||||||
reporterOptions;
|
reporterOptions;
|
||||||
|
|
||||||
if (process.env.CI) {
|
if (process.env.CI) {
|
||||||
urlHost = 'front';
|
urlHost = 'front';
|
||||||
browser = 'chromium';
|
|
||||||
reporter = 'junit';
|
reporter = 'junit';
|
||||||
reporterOptions = {
|
reporterOptions = {
|
||||||
mochaFile: 'e2e-junitresults.xml',
|
mochaFile: 'junit/cypress.xml',
|
||||||
toConsole: false,
|
toConsole: false,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -5,9 +5,21 @@ import jsconfigPaths from 'vite-jsconfig-paths';
|
||||||
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite';
|
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
|
let reporters,
|
||||||
|
junit;
|
||||||
|
|
||||||
|
if (process.env.CI) {
|
||||||
|
reporters = 'junit';
|
||||||
|
junit = {outputFile: './junit/vitest.xml'};
|
||||||
|
} else {
|
||||||
|
reporters = 'default';
|
||||||
|
}
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
test: {
|
test: {
|
||||||
|
reporters,
|
||||||
|
junit,
|
||||||
environment: 'happy-dom',
|
environment: 'happy-dom',
|
||||||
setupFiles: 'test/vitest/setup-file.js',
|
setupFiles: 'test/vitest/setup-file.js',
|
||||||
include: [
|
include: [
|
||||||
|
|
Loading…
Reference in New Issue