HomeSoftware Heritage

[WIP] Bootstrap end to end tests with cypress

Authored by anlambert on Jun 11 2019, 10:29 AM.

Description

[WIP] Bootstrap end to end tests with cypress

Summary:
Setup an environment to perform end to end tests using the cypress Test Runner.

Before running the tests, Software Heritage web application is executed in the
background using in-memory storages for fetching data contained in a sample archive.

To easily run the tests, two new make targets have been added:

  • test-frontend: Run tests in headless mode (this should be used in a CI environment)
  • test-frontend-ui: Run tests using the cypress GUI

As an example, a couple of tests regarding the highlighting of lines of code have been added.

Related T1768

Reviewers: Reviewers

Subscribers: shisus, kalpitk

Differential Revision: https://forge.softwareheritage.org/D1565

Details

Committed
vlorentzJun 11 2019, 10:29 AM
Pushed
vlorentzJun 11 2019, 1:19 PM
Differential Revision
D1565: [WIP] Bootstrap end to end tests with cypress
Parents
rDWAPPS82027bbd911d: Makefile.local: Silent django management outputs
Branches
Unknown
Tags
Unknown
Build Status
Buildable 6137
Build 8457: test-and-build