Skip to content

Commit f4afeec

Browse files
committed
Update CONTRIBUTING.md
1 parent 167f41e commit f4afeec

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

CONTRIBUTING.md

+6-20
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,19 @@ the [ClojureScript mailing list](https://groups.google.com/forum/#!forum/clojure
1414

1515
## Running tests
1616

17-
#### Via Browser/HTML
17+
To run the tests, you must have recent versions of node, npm and Leiningen.
1818

19-
To build the tests and run them in one step, just:
19+
To build the tests and run them in one step via karma, just:
2020
```sh
21-
lein test-once # compiles & then opens test.html in the browser
21+
npm install -g karma-cli
22+
lein ci
2223
```
2324

2425
You can also get auto compiles via:
2526
```sh
26-
lein test-auto
27-
```
28-
but you'll need to manually open `test/test.html` in a browser. And you'll also need to
29-
manually reload this page after each auto compile.
30-
31-
#### Via Karma
32-
33-
To run the tests, you must have recent versions of node, npm, Leiningen, and a C++ compiler
34-
toolchain installed. If you're on Linux or Mac OS X then you will be fine,
35-
if you're on Windows then you need to install Visual Studio Community Edition,
36-
and the C++ compiler dependencies.
37-
38-
```sh
39-
npm install karma-cli -g # Install the Karma CLI runner
40-
lein deps # runs lein-npm, installs Karma & other node dependencies. Only needed the first time.
41-
lein karma-once # to build re-frame tests
42-
karma start # to run the tests with an auto watcher
27+
lein watch
4328
```
29+
then open [http://localhost:3449/](http://localhost:3449/) in a browser for an auto-reloaded browser-based test runner.
4430

4531
## Pull requests for bugs
4632

0 commit comments

Comments
 (0)