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

E2E tests #6

Open
Evanion opened this issue Feb 13, 2019 · 0 comments
Open

E2E tests #6

Evanion opened this issue Feb 13, 2019 · 0 comments

Comments

@Evanion
Copy link
Owner

Evanion commented Feb 13, 2019

Description
We need to decide on the stratergy for unit tests.
There are a number of options available, and currently included in the codebase.

  • puppeteer - ex Routes/Login/__tests__/
  • Enzyme
    • Enzyme + react-intl wrapper - ex Routes/ForgotPassword/Routes/Request
  • Cypress

It would be good if we could run the E2E tests separately from the regular unit tests.

Puppeteer
Developed by google, successor to Phantom.js. Runs the tests in an actual browser.

  • Easy to understand syntax
  • Runs in headless Chrome

Enzyme
Developed by AirBnB. Runs the tests in a virtual DOM like environment.

Cypress
Similar to Puppeteer. Have built in support to record videos and screenshots of the tests. In order to assist in resolving failing tests.

Task
Evaluate different options and write a report on each with its pros and cons. as well as how they affect the developer experience (DX). The tests should be able to run in a CI environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant