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

Dynamic definition of content of @Sources via Sources supplier method/class? (SourcesLocator) #349

Open
thungsten opened this issue Sep 20, 2023 · 0 comments

Comments

@thungsten
Copy link

thungsten commented Sep 20, 2023

I need to have a list of places scanned for properties files. The number of file paths paths and exact definition of file paths may change. That's why it is not possible to use the current @Sources annotation without adding limitations.
In JUnit e.g. it is possible to define a dynamic stream/list of parameter values for @ParametrizedTest.

And in the Owner issues I saw a old suggestion/idea:

Eventually, if the end user needs a more complex strategy to identify from where to load
the properties files, maybe we can let him to specify a @SourcesLocatorClass(MySourceLocator)
and have the end user implement the algorithm
to identify a single URI or a list of URI to load the properties.

At the moment, new features added are lacking documentation (and this means that they
are incomplete for a release), and unfortunately I don't have much time to dedicate to
this project.

Originally posted by @lviggiano in #173 (comment)

Has that been implemented?

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant