Skip to content
Snippets Groups Projects
Commit 618a07c0 authored by OZGCloud's avatar OZGCloud
Browse files

Merge pull request 'jenkins-video-output' (#744) from jenkins-video-output into master

parents 03e68c59 9902f1c8
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,13 @@ module.exports = (on: any, config: any) => { ...@@ -67,6 +67,13 @@ module.exports = (on: any, config: any) => {
}, },
}); });
on('after:spec', (spec: Cypress.Spec, results: CypressCommandLine.RunResult) => {
if (results && results.video && results.stats.failures === 0) {
console.log(`Delete recorded video because spec passed: ${results.video}`);
fs.unlinkSync(results.video);
}
});
// Workaround für Angular 13 und Cypress mit Webpack 4, // Workaround für Angular 13 und Cypress mit Webpack 4,
// Siehe https://github.com/cypress-io/cypress/issues/19066#issuecomment-1012055705 // Siehe https://github.com/cypress-io/cypress/issues/19066#issuecomment-1012055705
// Entfernen, sobald Cypress Webpack 5 nutzt - https://github.com/cypress-io/cypress/issues/19555 // Entfernen, sobald Cypress Webpack 5 nutzt - https://github.com/cypress-io/cypress/issues/19555
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment