{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6769","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6769/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6769/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6769/events","html_url":"https://github.com/spring-projects/spring-boot/issues/6769","id":173635928,"number":6769,"title":"Top level @TestConfiguration classes should be picked up by SpringBootTest","user":{"login":"plamentotev","id":12773485,"avatar_url":"https://avatars.githubusercontent.com/u/12773485?v=3","gravatar_id":"","url":"https://api.github.com/users/plamentotev","html_url":"https://github.com/plamentotev","followers_url":"https://api.github.com/users/plamentotev/followers","following_url":"https://api.github.com/users/plamentotev/following{/other_user}","gists_url":"https://api.github.com/users/plamentotev/gists{/gist_id}","starred_url":"https://api.github.com/users/plamentotev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plamentotev/subscriptions","organizations_url":"https://api.github.com/users/plamentotev/orgs","repos_url":"https://api.github.com/users/plamentotev/repos","events_url":"https://api.github.com/users/plamentotev/events{/privacy}","received_events_url":"https://api.github.com/users/plamentotev/received_events","type":"User","site_admin":false},"labels":[{"id":16916893,"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":297028791,"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/feedback-provided","name":"feedback-provided","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-28T08:29:50Z","updated_at":"2016-12-27T08:37:07Z","closed_at":null,"body":"Hi,\n\nI'm using Spring Boot 1.4.0 with `spring-boot-starter-web` and `spring-boot-starter-test` starters. I would like to be able to configure additional beans that should be available only to test classes. But using top-level `@TestConfiguration` does not work - I expected that this way the test configuration should be shared by all test classes, but in fact it's just ignored.\n\nThe other way to share `@TestConfiguration` classes - that is to define a static inner-class `@TestConfiguration` inside base class, does not work either. The classes that extend the base class does not pick the inner `@TestConfiguration` class. I think this would be nice addition - this way you can share the same test configuration between a group of test classes that share the same base class - for example I have base class for all integration tests. This way I could add additional configuration that is only applied to the integration testes.\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/269293740","html_url":"https://github.com/spring-projects/spring-boot/issues/6769#issuecomment-269293740","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/6769","id":269293740,"user":{"login":"Roy-Lu","id":20810327,"avatar_url":"https://avatars.githubusercontent.com/u/20810327?v=3","gravatar_id":"","url":"https://api.github.com/users/Roy-Lu","html_url":"https://github.com/Roy-Lu","followers_url":"https://api.github.com/users/Roy-Lu/followers","following_url":"https://api.github.com/users/Roy-Lu/following{/other_user}","gists_url":"https://api.github.com/users/Roy-Lu/gists{/gist_id}","starred_url":"https://api.github.com/users/Roy-Lu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roy-Lu/subscriptions","organizations_url":"https://api.github.com/users/Roy-Lu/orgs","repos_url":"https://api.github.com/users/Roy-Lu/repos","events_url":"https://api.github.com/users/Roy-Lu/events{/privacy}","received_events_url":"https://api.github.com/users/Roy-Lu/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T08:37:07Z","updated_at":"2016-12-27T08:37:07Z","body":"Hi @plamentotev, I'm also confused with the document. And I don't know how to solve my problem neither. My situation is, there's a configuration and I want to replace it with another configuration during testing. I don't know how to do it."}}
{"actor":{"display_login":"Roy-Lu"}}