-
Notifications
You must be signed in to change notification settings - Fork 49
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
Using testOnly with multiple matches results in multiple shared resource instantiations #480
Comments
First of all, thank you for writing such a great issue, with a repro, this is great 😄 I'm sorry to say it's a user error. We have a note in the docs you linked :
So you need
When you do
the The thing with shared resources objects in weaver is that they are essentially considered as a test suite by the build tool, so when you call |
Thanks! 😄 Also glad this is not a bug! 😅 It looks like you need the full package path to the shared resource when running it through
I'm happy to submit a PR updating the docs with a simple example as above. |
This seems like it can be closed, reopen if I'm misreading it :) |
Hi,
I followed the recommendations for using
testOnly
as per Regarding "testOnly" build tool commands which works as expected whentestOnly
matches a single test.For example:
if however, I run
testOnly
with a slightly broader search as as:then I can see that the shared resource used across these Suites is instantiated multiple times.
I have a small sample repo that highlights the problem.
I am not sure if I am using this feature incorrectly or whether this is a bug/feature.
Thanks!
The text was updated successfully, but these errors were encountered: