-
Notifications
You must be signed in to change notification settings - Fork 218
Expose current test information from Invoker #1068
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
Comments
@grouma - we had discussed something similar recently. @smaifullerton-wk - can you expand on your use case? I think we had also considered an API like |
@natebosch Thanks for the fast response. We use the test status in our custom web driver wrapper to report to Sauce Labs whether or not a test passed (so we depend on knowing passing vs. failing -- the The group name is a bit hacky and lowest priority, but looks like it's used to report to Sauce Labs that all of the tests in a particular group have failed if one of them does. This may be unnecessary as the few usages we have were written 3 years ago. With all usages, the |
It sounds like the best thing for this use case might be #12 Having access to this info in a reporter is a little less risky than having it in the tests themselves, or in setup or teardown... |
I'm doing something hacky where I would like to use this. In a Flutter integration test I want to send a message to the app under test with the name of the current test, so it can initialize the http mocks specific to the current test. This is the thing from Ruby I'm trying to replicate in Dart https://github.com/vcr/vcr |
We're still stuck using a hacky workaround to access this via a src import - any update on making this available via a public API? |
No updates, we are hesitant to commit to a public API given that we don't believe it would be the best solution - it's what has come up as the hack because it's the cheapest option available. There isn't likely to be movement in either direction on this (either making it public or breaking existing imports) for a while. |
What about the related issue #12? That would solve the majority of our uses |
#12 is something we'd like to push on, but it's not on our immediate roadmap. It's really hard to have an idea of how much work that would take. We don't have solid patterns for "injecting" user code into the test runner - the fact that we build with user code is a big reason for the complexity and some of the slowness in |
We use source imports to access the
Invoker
directly to collection information about tests we run with a web driver in CI, such as:It'd be great if this information were publicly exposed so the API changing won't break us.
Related to #107
The text was updated successfully, but these errors were encountered: