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

Event Timeline

anlambert created this revision.May 29 2019, 6:02 PM
vlorentz accepted this revision.May 29 2019, 6:11 PM
vlorentz added a subscriber: vlorentz.
vlorentz added inline comments.
swh/web/assets/src/utils/test.js
2

2019

This revision is now accepted and ready to land.May 29 2019, 6:11 PM
anlambert abandoned this revision.Jun 7 2019, 6:04 PM

Abandoning this in favor of D1565