I am using WebdriverIO to run my tests on LambdaTest platform and I can see that my tests are only getting marked as completed. Is there an assertion or hook I need to use in order to mark the test as Passed/Failed
As you are using WebdriverIO, you can use the LambdaTest WebdriverIO service integration.
https://www.npmjs.com/package/wdio-lambdatest-service
https://github.com/LambdaTest/webdriverio-selenium-sample/blob/master/conf/single.conf.js
It would automatically mark the Test session passed failed as according to the WebdriverIO results.
conf/single.conf.js
exports.config = {
services: [
"lambdatest",
]
}