webdriverio
webdriverio copied to clipboard
[๐ Bug]: <Tough all the test cases of my spec files are passed it shows 1 spec failure in the console log>
Have you read the Contributing Guidelines on issues?
- [X] I have read the Contributing Guidelines on issues.
WebdriverIO Version
8.36.1
Node.js Version
18.19.1
Mode
Standalone Mode
Which capabilities are you using?
"@wdio/spec-reporter": "7.4.3",
What happened?
Tough all the test cases of my spec files are passed it shows 1 spec failure in the console log. Even it shows all the test cases are passing, but at the end in the consolidated spec file log it shows 1 failed. could not find any issue with log also.
[0-0] FAILED in chrome - C:\Users\Documents\working\latest\specs\PlannerView.spec.ts Test execution completed! waiting for 50 seconds Path--********************* C:\Users\Documents\working\latest\specs
"spec" Reporter:
[chrome 124.0.6367.79 windows #0-0] Running: chrome (v124.0.6367.79) on windows [chrome 124.0.6367.79 windows #0-0] Session ID: da490bc98d86eca51644288cda5de1cd [chrome 124.0.6367.79 windows #0-0] [chrome 124.0.6367.79 windows #0-0] ยป \e2e\specs\PlannerView.spec.ts [chrome 124.0.6367.79 windows #0-0] Validate Planning Template [chrome 124.0.6367.79 windows #0-0] โ Validate Planner View measures in the pivot view [chrome 124.0.6367.79 windows #0-0] โ Display information measure measure on user dashboard [chrome 124.0.6367.79 windows #0-0] โ validate the ingested long term measure value in Pivot [chrome 124.0.6367.79 windows #0-0] โ validate the ingested short term measure value in Pivot [chrome 124.0.6367.79 windows #0-0] [chrome 124.0.6367.79 windows #0-0] 4 passing (44m 30.8s)
Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:44:40
What is your expected behavior?
[0-0] FAILED in chrome - C:\Users\Documents\working\latest\specs\PlannerView.spec.ts Test execution completed! waiting for 50 seconds Path--********************* C:\Users\Documents\working\latest\specs
"spec" Reporter:
[chrome 124.0.6367.79 windows #0-0] Running: chrome (v124.0.6367.79) on windows [chrome 124.0.6367.79 windows #0-0] Session ID: da490bc98d86eca51644288cda5de1cd [chrome 124.0.6367.79 windows #0-0] [chrome 124.0.6367.79 windows #0-0] ยป \e2e\specs\PlannerView.spec.ts [chrome 124.0.6367.79 windows #0-0] Validate Consensus Planning Template [chrome 124.0.6367.79 windows #0-0] โ Validate Planner View measures in the pivot view [chrome 124.0.6367.79 windows #0-0] โ Display information measure measure on user dashboard [chrome 124.0.6367.79 windows #0-0] โ validate the ingested long term measure value in Pivot [chrome 124.0.6367.79 windows #0-0] โ validate the ingested short term measure value in Pivot [chrome 124.0.6367.79 windows #0-0] [chrome 124.0.6367.79 windows #0-0] 4 passing (44m 30.8s)
Spec Files: 1 passed, 0 failed, 1 total (100% completed) in 00:44:40
How to reproduce the bug.
i suspect issue with spec version, use the mentioned spec version and node Then just try to have below mentioned structure case and execute
descibe{
it(){ expect().to.equal(); }
it(){ expect().to.not.be.undefined; }
}
Relevant log output
[0-0] FAILED in chrome - C:\Users\Documents\working\latest\specs\PlannerView.spec.ts
Test execution completed!
waiting for 50 seconds
Path--********************* C:\Users\Documents\working\latest\specs
"spec" Reporter:
------------------------------------------------------------------
[chrome 124.0.6367.79 windows #0-0] Running: chrome (v124.0.6367.79) on windows
[chrome 124.0.6367.79 windows #0-0] Session ID: da490bc98d86eca51644288cda5de1cd
[chrome 124.0.6367.79 windows #0-0]
[chrome 124.0.6367.79 windows #0-0] ยป \e2e\specs\PlannerView.spec.ts
[chrome 124.0.6367.79 windows #0-0] Validate Planning Template
**[chrome 124.0.6367.79 windows #0-0] โ Validate Planner View measures in the pivot view
[chrome 124.0.6367.79 windows #0-0] โ Display information measure measure on user dashboard
[chrome 124.0.6367.79 windows #0-0] โ validate the ingested long term measure value in Pivot
[chrome 124.0.6367.79 windows #0-0] โ validate the ingested short term measure value in Pivot
[chrome 124.0.6367.79 windows #0-0]
[chrome 124.0.6367.79 windows #0-0] 4 passing (44m 30.8s)**
**Spec** Files: 0 passed, **1 failed**, 1 total (100% completed) in 00:44:40
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- [X] I have searched the existing issues
"@wdio/mocha-framework": "^7.20.0" - we are using mocha framework
Interesting, do you a reproducible example?
Thanks for raising this issue ๐
Unfortunately we can't help you without a reproducible example in this matter. Please read our contributing guidelines on how to create a reproducible example. If you can't provide a reproducible example we will close this issue in 7 days.
If you have any questions please reach out to us on our Discord channel. We are happy to help you out there.
Have you considered updating to 7.33.0?
Closing due to inactivity. Happy to re-open if a reproducible example can be provided.