ci: publish frontend test and coverage reports
This commit is contained in:
@@ -4,14 +4,29 @@ import tailwindcss from '@tailwindcss/vite'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react(), tailwindcss()],
|
||||
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': 'http://localhost:5000',
|
||||
},
|
||||
},
|
||||
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
globals: true,
|
||||
setupFiles: './src/setupTests.js',
|
||||
|
||||
// Jenkins pourra lire directement ce fichier.
|
||||
reporters: ['default', 'junit'],
|
||||
outputFile: {
|
||||
junit: './test-results/junit.xml',
|
||||
},
|
||||
|
||||
// Rapports utilisés ensuite par Jenkins et SonarQube.
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
reporter: ['text', 'html', 'lcov'],
|
||||
reportsDirectory: './coverage',
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user