spring-cloud / spring-cloud/spring-cloud-stream

Consider to introduce @StreamTest for SCSt-specific slices to test

Open
#1,097 1 comment 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.