spring-projects / spring-projects/spring-boot

Allow RestTestClient to be used for RESTDocs tests

Open
#47,369 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: blocked type: enhancement
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

We have support for WebTestClient and it looks like we could have support for RestTestClient as well. This would also removes the need to have spring-webflux on the classpath to use the fluent API.

Contributor guide

Open the contributing guide

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 by locating the existing WebTestClient support used for RESTDocs tests and compare its integration points with RestTestClient. Check how the RESTDocs fluent API currently brings in spring-webflux, then verify that RestTestClient support works without that classpath dependency and that the relevant RESTDocs tests pass.

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
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.