JS: describe how to run tests in node.js

This commit is contained in:
Alexey Andreev
2016-09-06 12:47:08 +03:00
parent 0c3c2af76d
commit c1e13cc788
2 changed files with 19 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
To run tests in node.js your need the following prerequisites installed:
* node.js itself (installation is platform-dependent);
* mocha (`npm install -g mocha`).
Run `nmp install` from this directory to download all additional dependencies for tests.
First, you need to run box tests via JUnit. JUnit tests additionally generate *mocha* runners
(i.e. `.node.js` files).
Second, run `mocha` from this directory.
You can declare `KOTLIN_JS_LOCATION` environment variable to customize location of `kotlin.js` library,
`../../../dist/js/kotlin.js` used by default.
+5
View File
@@ -0,0 +1,5 @@
{ "dependencies" : {
"require-from-string" : "1.2.0"
}
}