Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

So in our project we are using spring boot with thymeleaf and vanilla javascript to render web pages. Now while writing our UI tests we are currently using HTML Unit as a headless browser as it integrates rather well with spring boot. However , whenever we use a little advanced calls like array.flatMap etc html unit fails as its engine does nit support those. So we are looking for an alternative to explore to plugin into our environment. Can someone please advise a headless browser that we can integrate . into our spring boot application ? Also if possible any documentation to integrate will help? Appreciate the help.

You can use Cypress running in a Docker container. To make this a bit easier you can use https://github.com/wimdeblauwe/testcontainers-cypress

Disclaimer: I am the author of the testcontainers-cypress library.

Quick question : I am looking to run the tests during a gradle build ? Will Cypress be good candidate for that? Som Bhattacharyya Jan 7, 2020 at 7:38 Great I will seek your help Once i start hooking it with my Spring app. Appreciate the response ! Som Bhattacharyya Jan 7, 2020 at 7:42 @bhattacharyya, how things worked with you ? What is your feedback ? I have the same need as you. Amir Choubani Mar 31, 2021 at 10:26 Cypress is a fair option to be honest. We as a team chose to go to devexpress.github.io/testcafe to run the tests. Som Bhattacharyya Apr 5, 2021 at 8:25

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .