Cypress 결과를 한번에 보기
npm install -D mochawesome
npm install -D cypress-mochawesome-reporter
report 관련 설정
const { defineConfig } = require('cypress');
module.exports = defineConfig({
reporter: 'cypress-mochawesome-reporter',
video: false,
reporterOptions: {
charts: true,
reportPageTitle: 'Cypress Inline Reporter',
embeddedScreenshots: true,
inlineAssets: true, //Adds the asserts inline
},
e2e: {
experimentalStudio: true,
setupNodeEvents(on, config) {
require('cypress-mochawesome-reporter/plugin')(on);
},
},
});
npx cypress run --e2e
video 가 true인 경우에는 video 생성 (false로 하는 경우 기존 video가 사라지니 주의)
index.html 내부 상세하게 기재