From c1e13cc788da1b627aba6cb53d752c3c7c8b2e2b Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Tue, 6 Sep 2016 12:47:08 +0300 Subject: [PATCH] JS: describe how to run tests in node.js --- js/js.translator/testData/README.md | 14 ++++++++++++++ js/js.translator/testData/package.json | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 js/js.translator/testData/README.md create mode 100644 js/js.translator/testData/package.json diff --git a/js/js.translator/testData/README.md b/js/js.translator/testData/README.md new file mode 100644 index 00000000000..2107a78039d --- /dev/null +++ b/js/js.translator/testData/README.md @@ -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. \ No newline at end of file diff --git a/js/js.translator/testData/package.json b/js/js.translator/testData/package.json new file mode 100644 index 00000000000..66dbd529c8d --- /dev/null +++ b/js/js.translator/testData/package.json @@ -0,0 +1,5 @@ +{ "dependencies" : { + + "require-from-string" : "1.2.0" + } +} \ No newline at end of file