Skip to content

Commit ba0073c

Browse files
committed
README: Add notes on running tests
1 parent cfe9e76 commit ba0073c

1 file changed

Lines changed: 22 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,18 +282,33 @@ If any of these steps error with, `file table overflow`, you are probably on a m
282282
which has a very low limit on max open files. Run `ulimit -Sn 1024` and try again.
283283
You'll need to do this in each new terminal you open before building Riot.
284284
285-
How to add a new translation?
286-
=============================
285+
Running the tests
286+
-----------------
287287
288-
[<img src="https://translate.riot.im/widgets/riot-web/-/multi-auto.svg" alt="translationsstatus" width="340">](https://translate.riot.im/engage/riot-web/?utm_source=widget)
288+
There are a number of application-level tests in the `tests` directory; these
289+
are designed to run in a browser instance under the control of
290+
[karma](https://karma-runner.github.io). To run them:
291+
292+
* Make sure you have Chrome installed (a recent version, like 59)
293+
* Make sure you have `matrix-js-sdk` and `matrix-react-sdk` installed and
294+
built, as above
295+
* `npm run test`
296+
297+
The above will run the tests under Chrome in a `headless` mode.
289298
299+
You can also tell karma to run the tests in a loop (every time the source
300+
changes), in an instance of Chrome on your desktop, with `npm run
301+
test-multi`. This also gives you the option of running the tests in 'debug'
302+
mode, which is useful for stepping through the tests in the developer tools.
290303
291-
Head to the [translating doc](docs/translating.md)
304+
Translations
305+
============
292306
293-
Adding Strings to the translations (Developer Guide)
294-
====================================================
307+
To add a new translation, head to the [translating doc](docs/translating.md).
295308
296-
Head to the [translating dev doc](docs/translating-dev.md)
309+
For a developer guide, see the [translating dev doc](docs/translating-dev.md).
310+
311+
[<img src="https://translate.riot.im/widgets/riot-web/-/multi-auto.svg" alt="translationsstatus" width="340">](https://translate.riot.im/engage/riot-web/?utm_source=widget)
297312
298313
Triaging issues
299314
===============

0 commit comments

Comments
 (0)