spring-cloud / spring-cloud/spring-cloud-stream
Consider to introduce @StreamTest for SCSt-specific slices to test
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 646
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 8
Description
See Spring Boot Reference Manual for more info.
This one might be marked with something like:
public @interface AutoConfigureTestBinder {
/**
* If {@link TestSupportBinderAutoConfiguration} should be appied.
* Defaults to {@code true}
* @return if test binder support is enabled
*/
boolean enabled() default true;
}
Right now we can exclude that one only via:
@SpringBootTest(
properties = "spring.autoconfigure.exclude=org.springframework.cloud.stream.test.binder.TestSupportBinderAutoConfiguration")
which is not so convenient and obvious.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Spring Boot testing reference and the current SpringBootTest exclusion for TestSupportBinderAutoConfiguration. Define the proposed @StreamTest and AutoConfigureTestBinder behavior, including the enabled default, and verify that SCSt-specific slice tests can control the test binder without the properties workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100