webdriverio icon indicating copy to clipboard operation
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>

Open safenaphilip opened this issue 10 months ago โ€ข 4 comments

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

  • [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

safenaphilip avatar Apr 29 '24 05:04 safenaphilip

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

safenaphilip avatar Apr 29 '24 05:04 safenaphilip

Interesting, do you a reproducible example?

christian-bromann avatar Apr 29 '24 17:04 christian-bromann

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.

wdio-bot avatar Apr 29 '24 17:04 wdio-bot

Have you considered updating to 7.33.0?

erwinheitzman avatar May 06 '24 08:05 erwinheitzman

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

christian-bromann avatar May 28 '24 04:05 christian-bromann