-
Notifications
You must be signed in to change notification settings - Fork 10
Add integration tests with Cypress #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| "cypress:ci": "cypress run", | ||
| "cypress:dev": "cypress open", | ||
| "start-server": "grunt", | ||
| "test:dev": "start-server-and-test start-server http://localhost:8080 cypress:dev", | ||
| "test:ci": "start-server-and-test start-server http://localhost:8080 cypress:ci" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to do this through Grunt, since it's what the project uses for all it's tasks, but I couldn't do it.
For Cypress to work, you need to run both the dev server and Cypress server in parallel. However, for parallel tasks support in Grunt, it seems you need to install a plugin, so I used this start-server-and-test library instead, which seemed to be simpler. Let me know what you think about it.
Once we get this task-running-setup-thing straight, if it interests you, we can also create a GitHub Action to run the tests (and other tasks, such as linting) against each pull request.
Description
Adds some integration tests, made with Cypress.
npm run cypress:devto run them in headed modenpm run cypress:cito run them in headless modeVideo
mob-timer.spec.js.mp4