Most lightweight setup to test custom forms

We have some custom forms deploying in a Tomcat based application, which slows down significantly the development process since we need at each time to start a database, build the web application WAR, build the tomcat Docker image and start it.

Is there a more lightweight setup that can be used to test the forms, such as running an embedded servlet container and deploy on the top of it the tasklist app? Are there available examples of those setup?