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

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 968,547 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.

Oldest comments (0)

πŸ‘‹ Hey, my name is Noah and I’m the one who set up this ad. My job is to get you to join DEV, so if you fancy doing me a favor, I’d love for you to create an account.

If you found DEV from searching around, here are a couple of our most popular articles on DEV: