Skip to content
New issue

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

[🐛 Bug]: <Tough all the test cases of my spec files are passed it shows 1 spec failure in the console log> #12756

Closed
3 tasks done
safenaphilip opened this issue Apr 29, 2024 · 5 comments

Comments

@safenaphilip
Copy link

Have you 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

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues
@safenaphilip safenaphilip added Bug 🐛 Needs Triaging ⏳ No one has looked into the issue yet labels Apr 29, 2024
@safenaphilip
Copy link
Author

"@wdio/mocha-framework": "^7.20.0" - we are using mocha framework

@safenaphilip safenaphilip changed the title [🐛 Bug]: <title> [🐛 Bug]: <Tough all the test cases of my spec files are passed it shows 1 spec failure in the console log> Apr 29, 2024
@christian-bromann
Copy link
Member

Interesting, do you a reproducible example?

@christian-bromann christian-bromann added Reproducible Example Missing and removed Needs Triaging ⏳ No one has looked into the issue yet labels Apr 29, 2024
@wdio-bot
Copy link
Contributor

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.

@erwinheitzman
Copy link
Member

Have you considered updating to 7.33.0?

@christian-bromann
Copy link
Member

Closing due to inactivity. Happy to re-open if a reproducible example can be provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants