Page MenuHomeSoftware Heritage

[WIP] Add frontend unit tests
AbandonedPublic

Authored by anlambert on May 29 2019, 6:02 PM.

Details

Reviewers
vlorentz
Group Reviewers
Reviewers
Summary

Finally took some time to bootstrap unit tests for the frontend part of Software Heritage
web applications.

Those tests are compiled with webpack and executed by node.js in a Javascript emulated headless
DOM environment (jsdom) through the use of the mocha tests runner.

First implemented tests are about source code highlighting features.

To run the tests, execute the following commands in the root folder of swh-web:

$ yarn install
$ yarn test

This is still a work in progress.

Related T1769

Diff Detail

Repository
rDWAPPS Web applications
Branch
js-tests
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 5973
Build 8190: tox-on-jenkinsJenkins
Build 8189: arc lint + arc unit