DEV Community

Zenrac
Zenrac

Posted on

Generate your own application with End-to-End testing thanks to JHipster.NET

JHipster.NET and Cypress

Introduction

When generating your application with JHipster.NET, you can decide to generate some optional Tests :

  • Performance tests with Gatling.
  • Behaviour-driven tests with Cucumber.
  • Angular/React/Vue integration tests with Cypress.

Today we're going to talk about Cypress, a next generation front end testing tool built for the modern web.

Generate Cypress tests

When generating your application, make sure to select Cypress (by pressing the space bar).
Choose Cypress

Run your Cypress tests

Once your application is generated, you can optionally add some entities (check this article to get started with entity generation), it will auto-generate the corresponding tests for your entities. Execute cypress using this command :

src/YourApplication/ClientApp/node_modules/.bin/cypress open
Enter fullscreen mode Exit fullscreen mode

Conclusion

Now you should be able to generate End-To-End tests though Cypress thanks to JHipster !
Feel free to contribute to JHipster.NET's GitHub repository and don't forget to put a star if you liked it.

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay