Skip to content
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

Add end to end tests using Cypress test runner #70

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

bahmutov
Copy link

@bahmutov bahmutov commented Jan 9, 2018

Hi,

I have noticed that the project lacks any tests and took liberty to write a few using Cypress.io test runner. The tests are exercising all methods, except for find (because there are 2 arguments, not one like other tests). Each test grabs the code from the input, evaluates it and compares to the shown output. Here is example of the test runner going through tests when opened with npm run test:gui

faked-date

The test runner in action in this video https://youtu.be/6-nI6lW3zM0

array-explorer-start

Two new script commands

  • npm run test:gui to open Cypress GUI and see the tests locally.
  • npm test to run Cypress without GUI (good for CI)

Both assume the app is running at http://localhost:8080

Base automatically changed from master to main January 24, 2021 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant