Skip to content

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