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

Cannot use dedicated Spring profile for generating docs #18

Open
roltean opened this issue Jun 19, 2017 · 2 comments
Open

Cannot use dedicated Spring profile for generating docs #18

roltean opened this issue Jun 19, 2017 · 2 comments

Comments

@roltean
Copy link

roltean commented Jun 19, 2017

I'm trying to use a dedicated Spring profile for running the tests that generate documentation and it proved to be unsuccessful, no matter what I tried.

Applying

@ActiveProfiles("docs")

causes Spring to select the docs profile
The following profiles are active: docs
but the configuration applied is the one in application.yml not the one in application-docs.yml.
Adding

@TestPropertySource(locations="classpath:application-docs.yml")

I end up with the same result. I have placed application-docs.yml in both main and test source sets, just to be sure, and the settings inside are still not being picked up.

Any ideas on how to override the default settings in application.yml with custom settings specific to documentation generation?

@RobWin
Copy link
Member

RobWin commented Jun 29, 2017

Hi Rares,
strange. Do you have a public project to reproduce the issue?

@roltean
Copy link
Author

roltean commented Jun 29, 2017

Hi Robert,

I don't have a public project ready that reproduces the issue but I will try to put together one soon. I'll send you the link once it's ready.

Thanks!

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

No branches or pull requests

2 participants