Skip to content

Commit

Permalink
#3087: jest.rst, verbose documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff1evesque committed May 19, 2018
1 parent af8c88c commit 193f864
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions doc/test/jest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ Unit Test: Jest
===============

Jest is used to perform unit testing against our reactjs frontend code. Specifically,
our `package.json`, defines a corresponding `script`, to execute the set of unit tests:
our `package.json`, defines a corresponding `script`, which can execute a set of unit
tests. This can easiliest be done from the `browserify` container, provided by the
rancher |development build|_:

.. code:: bash
root@trusty64:/vagrant# docker build -f dockerfile/browserify.dockerfile -t jeff1evesque/ml-browserify:0.7 .
root@trusty64:/vagrant# docker run --hostname browserify --name browserify -d jeff1evesque/ml-browserify:0.7
root@trusty64:/vagrant# docker exec -it browserify /bin/bash
root@browserify:/var/machine-learning/src/jsx# npm run test
> reactjs@1.0.0 test /var/machine-learning/src/jsx
Expand Down Expand Up @@ -149,4 +154,6 @@ containing the `package.json`, within the `browserify` docker container.

This frontend testing can be executed manually, as indicated above. However, it is also
implemented within our travis ci. Therefore, each pull request, will verify the integrity
of the reactjs frontend code.
of the reactjs frontend code.

.. _development build: ../installation/rancher

0 comments on commit 193f864

Please sign in to comment.