#nodejs: debug
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/bf7812e1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/bf7812e1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/bf7812e1 Branch: refs/heads/ignite-nodejs Commit: bf7812e130472b685441f6e5ff0d917df54c6f61 Parents: 0be954f Author: ivasilinets <ivasilin...@gridgain.com> Authored: Mon Jun 8 00:20:03 2015 +0300 Committer: ivasilinets <ivasilin...@gridgain.com> Committed: Mon Jun 8 00:20:03 2015 +0300 ---------------------------------------------------------------------- modules/nodejs/src/test/nodejs/test_ignition.js | 2 ++ modules/nodejs/src/test/nodejs/test_utils.js | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bf7812e1/modules/nodejs/src/test/nodejs/test_ignition.js ---------------------------------------------------------------------- diff --git a/modules/nodejs/src/test/nodejs/test_ignition.js b/modules/nodejs/src/test/nodejs/test_ignition.js index da02039..388278b 100644 --- a/modules/nodejs/src/test/nodejs/test_ignition.js +++ b/modules/nodejs/src/test/nodejs/test_ignition.js @@ -1,3 +1,5 @@ +exports = module.exports = {}; + function TestIgnition () { } http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bf7812e1/modules/nodejs/src/test/nodejs/test_utils.js ---------------------------------------------------------------------- diff --git a/modules/nodejs/src/test/nodejs/test_utils.js b/modules/nodejs/src/test/nodejs/test_utils.js index 93a08ce..d7ec458 100644 --- a/modules/nodejs/src/test/nodejs/test_utils.js +++ b/modules/nodejs/src/test/nodejs/test_utils.js @@ -111,9 +111,16 @@ TestUtils.testDone = function() { */ TestUtils.runTest = function() { var fileName = process.argv[2].toString().trim(); + + console.log("FileName " + fileName); + var Test = require(fileName); + + console.log("Test : " + Object.keys(Test)) + Test = Test[Object.keys(Test)[0]]; - console.log(Test); + + console.log("Result test: " + Test); var functionName = process.argv[3].toString().trim(); if (!Test[functionName]) {