From 10c4c75236d20af759b8ef506fd8d9fe3b8e1d4e Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 19 Jan 2018 21:13:20 -0500 Subject: [PATCH] move tests related files to their own folder --- lib/index.js | 6 +++--- lib/{core => tests}/run_tests.js | 0 lib/{core => tests}/test.js | 6 ++---- lib/{core => tests}/test_logger.js | 0 test/compiler.js | 2 +- test/contracts.js | 2 +- 6 files changed, 7 insertions(+), 9 deletions(-) rename lib/{core => tests}/run_tests.js (100%) rename lib/{core => tests}/test.js (97%) rename lib/{core => tests}/test_logger.js (100%) diff --git a/lib/index.js b/lib/index.js index a1a38193..1ea82bb8 100644 --- a/lib/index.js +++ b/lib/index.js @@ -185,7 +185,7 @@ class Embark { } initTests(options) { - let Test = require('./core/test.js'); + let Test = require('./tests/test.js'); return new Test(options); } @@ -221,7 +221,7 @@ class Embark { } runTests(file) { - let RunTests = require('./core/run_tests.js'); + let RunTests = require('./tests/run_tests.js'); RunTests.run(file); } @@ -229,7 +229,7 @@ class Embark { // temporary until next refactor Embark.initTests = function(options) { - let Test = require('./core/test.js'); + let Test = require('./tests/test.js'); return new Test(options); }; diff --git a/lib/core/run_tests.js b/lib/tests/run_tests.js similarity index 100% rename from lib/core/run_tests.js rename to lib/tests/run_tests.js diff --git a/lib/core/test.js b/lib/tests/test.js similarity index 97% rename from lib/core/test.js rename to lib/tests/test.js index dd53cb58..94f5edc5 100644 --- a/lib/core/test.js +++ b/lib/tests/test.js @@ -1,10 +1,8 @@ var async = require('async'); //require("../utils/debug_util.js")(__filename, async); var Web3 = require('web3'); - -var Engine = require('./engine.js'); - -var RunCode = require('./runCode.js'); +var Engine = require('../core/engine.js'); +var RunCode = require('../core/runCode.js'); var TestLogger = require('./test_logger.js'); var getSimulator = function() { diff --git a/lib/core/test_logger.js b/lib/tests/test_logger.js similarity index 100% rename from lib/core/test_logger.js rename to lib/tests/test_logger.js diff --git a/test/compiler.js b/test/compiler.js index 36efed82..c7c2bdf1 100644 --- a/test/compiler.js +++ b/test/compiler.js @@ -1,7 +1,7 @@ /*globals describe, it*/ let Compiler = require('../lib/contracts/compiler.js'); let SolidityCompiler = require('../lib/modules/solidity'); -let TestLogger = require('../lib/core/test_logger.js'); +let TestLogger = require('../lib/tests/test_logger.js'); let File = require('../lib/core/file.js'); let assert = require('assert'); let fs = require('fs'); diff --git a/test/contracts.js b/test/contracts.js index 9287ccb9..4de8db56 100644 --- a/test/contracts.js +++ b/test/contracts.js @@ -2,7 +2,7 @@ let ContractsManager = require('../lib/contracts/contracts.js'); let Logger = require('../lib/core/logger.js'); let File = require('../lib/core/file.js'); -let TestLogger = require('../lib/core/test_logger.js'); +let TestLogger = require('../lib/tests/test_logger.js'); let assert = require('assert'); let fs = require('fs');