Skip to content

@TestPropertySource does not load YAML file #11921

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

Closed
abreu-dev opened this issue Feb 6, 2018 · 3 comments
Closed

@TestPropertySource does not load YAML file #11921

abreu-dev opened this issue Feb 6, 2018 · 3 comments
Labels
status: invalid An issue that we don't feel is valid

Comments

@abreu-dev
Copy link

I think this may be a bug. Using @TestPropertySource(locations = "classpath:test.yml") does not override any property.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 6, 2018
@snicoll
Copy link
Member

snicoll commented Feb 6, 2018

@TestPropertySource does not support YAML. There was a request in Spring Framework to add that that was declined.

@snicoll snicoll closed this as completed Feb 6, 2018
@snicoll snicoll added status: invalid An issue that we don't feel is valid and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 6, 2018
@abreu-dev
Copy link
Author

This take me some time to figure out what was happening. Maybe some additional info in documentation should be useful for others. Thanks @snicoll

@abreu-dev abreu-dev changed the title @TestPropertySource does not load .yml file properties @TestPropertySource does not load YAML file properties Feb 6, 2018
@snicoll
Copy link
Member

snicoll commented Feb 6, 2018

@andreabreu-me this is not a Spring Boot feature. If you want to pursue this, please create an issue in the Spring Framework tracker.

@snicoll snicoll changed the title @TestPropertySource does not load YAML file properties @TestPropertySource does not load YAML file Feb 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

3 participants