@@ -81,7 +81,7 @@ to build.
8181 npm run build
8282 ```
8383 However, we recommend setting up a proper development environment (see "Setting
84- up a development environment" below) if you want to run your own copy of the
84+ up a dev environment" below) if you want to run your own copy of the
8585 ` develop ` branch, as it makes it much easier to keep these dependencies
8686 up-to-date. Or just use https://riot.im/develop - the continuous integration
8787 release of the develop branch.
@@ -253,7 +253,6 @@ Finally, build and start Riot itself:
2532531 . ` rm -r node_modules/matrix-react-sdk; ln -s ../../matrix-react-sdk node_modules/ `
2542541 . ` npm start `
2552551 . Wait a few seconds for the initial build to finish; you should see something like:
256-
257256 ```
258257 Hash: b0af76309dd56d7275c8
259258 Version: webpack 1.12.14
@@ -282,18 +281,33 @@ If any of these steps error with, `file table overflow`, you are probably on a m
282281which has a very low limit on max open files. Run `ulimit -Sn 1024` and try again.
283282You'll need to do this in each new terminal you open before building Riot.
284283
285- How to add a new translation?
286- =============================
284+ Running the tests
285+ -----------------
287286
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)
287+ There are a number of application-level tests in the `tests` directory; these
288+ are designed to run in a browser instance under the control of
289+ [karma](https://karma-runner.github.io). To run them:
290+
291+ * Make sure you have Chrome installed (a recent version, like 59)
292+ * Make sure you have `matrix-js-sdk` and `matrix-react-sdk` installed and
293+ built, as above
294+ * `npm run test`
289295
296+ The above will run the tests under Chrome in a `headless` mode.
290297
291- Head to the [translating doc](docs/translating.md)
298+ You can also tell karma to run the tests in a loop (every time the source
299+ changes), in an instance of Chrome on your desktop, with `npm run
300+ test-multi`. This also gives you the option of running the tests in 'debug'
301+ mode, which is useful for stepping through the tests in the developer tools.
292302
293- Adding Strings to the translations (Developer Guide)
294- ====================================================
303+ Translations
304+ ============
295305
296- Head to the [translating dev doc](docs/translating-dev.md)
306+ To add a new translation, head to the [translating doc](docs/translating.md).
307+
308+ For a developer guide, see the [translating dev doc](docs/translating-dev.md).
309+
310+ [<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)
297311
298312Triaging issues
299313===============
0 commit comments