We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The execution of Cypress is stuck if a test is skipped and there is an afterEach function defined in the spec.js file.
To Reproduce Steps to reproduce the behavior:
Expected behavior The cypress execution should not be stuck. The test run can go on to the next test case.
Environment (please complete the following information):
** Developer Tools Console Output **
Uncaught TypeError: Cannot read property 'startStep' of null at AllureReporter.startHook (AllureReporter.js:364) at Runner.eval (index.js:115)
Additional context If the afterEach function is empty like: afterEach(function () {}), the test execution is not stuck.
Please refer to the attached spec.js file that I modified in https://github.com/Shelex/cypress-allure-plugin-example The js file cannot be uploaded so I renamed it to txt file. steps.spec.txt
The text was updated successfully, but these errors were encountered:
fix: no executable for hooks when test is skipped, address #77
4f8105e
fix: handle test start-pending order for skipped tests, address #77
bd24ea4
Hi @haipinggong Have provided a fix in v2.8.2 where it should be resolved.
Could you please check on your case?
Sorry, something went wrong.
@Shelex , thanks. I have upgraded to v2.8.2 and I think it is fixed.
No branches or pull requests
Describe the bug
The execution of Cypress is stuck if a test is skipped and there is an afterEach function defined in the spec.js file.
To Reproduce
Steps to reproduce the behavior:
it('skip', function () {
this.skip()
});
afterEach(function () {
cy.log('This is after each test')
})
npx cypress open --env allure=true
Expected behavior
The cypress execution should not be stuck. The test run can go on to the next test case.
Environment (please complete the following information):
** Developer Tools Console Output **
Uncaught TypeError: Cannot read property 'startStep' of null
at AllureReporter.startHook (AllureReporter.js:364)
at Runner.eval (index.js:115)
Additional context
If the afterEach function is empty like:
afterEach(function () {}), the test execution is not stuck.
Please refer to the attached spec.js file that I modified in https://github.com/Shelex/cypress-allure-plugin-example
The js file cannot be uploaded so I renamed it to txt file.
steps.spec.txt
The text was updated successfully, but these errors were encountered: