我有一个包含两个以上测试用例的套件。使用赛普拉斯,当其中一项测试失败时,如何从测试套件开始重试所有测试?
我尝试使用赛普拉斯的retries
选项,但它仅重试单个失败的测试,而不是从套件开始以来的所有测试。有人知道如何执行此操作吗?请帮助我。
describe('An user with an assigned report', {
retries: {
'runMode': 2,
'openMode': 2
}
}, () => {
before(() => {
const config = Cypress.env()
cy.logout()
cy.login(username, password)
})
after(() => {
cy.logout()
})
it('should be able to add a comment', () => {
cy.openReportWriterRightPanel()
})
it('should be able to add Incident Overview details', () => {
// Click 'Incident Overview' and fill out form.
cy.findByLabelText('currently active entity').click()
})
}