1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-13 22:12:50 +02:00

Doc: Add docs to clarify how to test (#1775)

This commit is contained in:
Devon Zuegel
2019-07-29 00:42:10 -07:00
committed by Laurent Cozic
parent af4aa01b75
commit 770846be2e

View File

@@ -54,7 +54,20 @@ The tests are under CliClient/tests. To get them running, you first need to buil
cd CliClient
npm i
Then to run all the test units:
To run the test units, you must have an instance of the cli app running. In a first window navigate into `CliClient` and run:
```sh
./run.sh
```
> If you get an error like `Error: Cannot find module '../locales/index.js'`, this means you must (a) rebuild translations or (b) take > them from one of the other apps. To do option b, you can run the following command to copy them from the `ReactNativeClient` directory:>
>
> ```sh
> cd .. # Return to the root of the project
> rsync -aP ./ReactNativeClient/locales/ ./CliClient/build/locales/
> ```
Then run the tests in a second window. To run all the test units:
./run_test.sh