wimdeblauwe / htmx-spring-boot

Spring Boot and Thymeleaf helpers for working with htmx
Apache License 2.0
497 stars 48 forks source link

Investigate hypermedia in MockMVC testing #15

Open checketts opened 2 years ago

checketts commented 2 years ago

HTMX's support for hypermedia client means that we could write tests that validate those calls.

I wonder if we could add test support that would inspect a response, locate an hx-get request, then make a new MockMVC call that can be further verified.

This isn't urgent. But the idea seems really promising. Any investigation can just take place in this project's src/test to determine if it is useful.