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

[💡 Feature]: Timeout for Entirety of WebDriverIO Test Runner Instance #12678

Open
1 task done
samuelfreiberg opened this issue Apr 12, 2024 · 2 comments
Open
1 task done
Labels
help wanted Issues that are free to take by anyone interested Idea 💡 A new feature idea

Comments

@samuelfreiberg
Copy link
Contributor

samuelfreiberg commented Apr 12, 2024

Is your feature request related to a problem?

Imagine a scenario where the WebDriverIO test runner is running underneath a different test harness, and that parent test harness has a timeout.

We have a native environment that runs automation in a CI loop. I've developed an integration layer that allows us to run WebDriverIO test harness underneath our native test harness. (Why? So we have the ability to run JS test code in our native environment, which we haven't been able to do. This helps us with our goal of writing JS features moving forward).

If the parent test harness reaches its default timeout, it immediately stops execution of the test instance. Therefore, we don't get any debugging information from WebDriverIO because it was deleted before logs can be made.

This would be an issue for all situations where WebDriverIO is running underneath a process that has a timeout. It doesn't have to be a different test harness, it could simply be a CI loop that has a timeout.

Describe the solution you'd like.

We would like the ability to set a timeout on the WebDriverIO instance so we could fail early (if necessary) and still output all the logs.

For example, in the WebDriverIO configuration file, something like:

testRunnerTimeout: 50000 // 5 minutes from start to end

So the second WebDriverIO starts execution, it has 5 minutes to finish. If it doesn't, export all logs and fail.

Describe alternatives you've considered.

No response

Additional context

We're a huge consumer of WebDriverIO and we're integrating it at a high-capacity. It would be great if we could work together to do this! Thanks.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@samuelfreiberg samuelfreiberg added Idea 💡 A new feature idea Needs Triaging ⏳ No one has looked into the issue yet labels Apr 12, 2024
@christian-bromann
Copy link
Member

testRunnerTimeout: 50000 // 5 minutes from start to end

I would just call it timeout and have it being part of the WebdriverIO.Config type.

@christian-bromann christian-bromann added help wanted Issues that are free to take by anyone interested and removed Needs Triaging ⏳ No one has looked into the issue yet labels Apr 15, 2024
@wdio-bot
Copy link
Contributor

Thanks for reporting!

We greatly appreciate any contributions that help resolve the bug. While we understand that active contributors have their own priorities, we kindly request your assistance if you rely on this bug being fixed. We encourage you to take a look at our contribution guidelines or join our friendly Discord development server, where you can ask any questions you may have. Thank you for your support, and cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issues that are free to take by anyone interested Idea 💡 A new feature idea
Projects
None yet
Development

No branches or pull requests

3 participants