DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,864 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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.

Top comments (0)

Take a look at this:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›