|
2 | 2 |
|
3 | 3 | A simple and lightweight Entity Component System library for writing games with Clojure or ClojureScript.
|
4 | 4 |
|
5 |
| - |
| 5 | + |
6 | 6 |
|
7 | 7 | [](https://app.wercker.com/project/bykey/5f5d692036ee110c41a50ccc7b6f4ae5)
|
8 | 8 |
|
@@ -140,32 +140,21 @@ Pull requests are always welcome!
|
140 | 140 |
|
141 | 141 | Active development happens on the `develop` branch. The `master` branch is the source for the current release.
|
142 | 142 |
|
143 |
| -### CLJX |
144 |
| -This project uses [CLJX](https://github.com/lynaghk/cljx) to cross compile to Clojure and ClojureScript. For that reason, you will want to run `lein cljx` before starting up a REPL, otherwise the REPL won't be able to find the user.clj dependencies. |
| 143 | +### Reader Conditionals |
| 144 | +This project uses [Reader Conditionals](http://clojure.org/reader#The%20Reader--Reader%20Conditionals) to support both Clojure and ClojureScript. It should be a seamless experience. |
145 | 145 |
|
146 |
| -If you want to use [Midje autotest](https://github.com/marick/Midje/wiki/Autotest), you will want to run `lein cljx auto` to automatically generate the Clojure files so that Midje can see the changes. |
| 146 | +## Testing |
147 | 147 |
|
148 |
| -### ClojureScript |
| 148 | +To test under Clojure: `lein test` |
149 | 149 |
|
150 |
| -To run the tests under ClojureScript you will need the following Node pages installed: |
| 150 | +To test under ClojureScript: `lein cljstest` |
151 | 151 |
|
152 |
| -```bash |
153 |
| -npm install -g karma karma-cli karma-jasmine jasmine-node |
154 |
| -``` |
155 |
| - |
156 |
| -To run the CLJS tests in isolation you can run: |
157 |
| - |
158 |
| -```bash |
159 |
| -lein cljsbuild test karma |
160 |
| -``` |
161 |
| - |
162 |
| -### Clean Test |
| 152 | +To run all tests: `lein alltest` |
163 | 153 |
|
164 |
| -To do a clean end to end test of both the Clojure and ClojureScript code: |
| 154 | +### Run all tests in the a Docker Container |
| 155 | +You should be able to run all the tests without having to install anything, except to pull the Docker container. |
165 | 156 |
|
166 |
| -```bash |
167 |
| -lein cleantest |
168 |
| -``` |
| 157 | +`make test` will run all the tests in the development Docker container, which should make development easier. |
169 | 158 |
|
170 | 159 | ## License
|
171 | 160 |
|
|
0 commit comments