move tests related files to their own folder

This commit is contained in:
Iuri Matias 2018-01-19 21:13:20 -05:00
parent f35718b6c0
commit 10c4c75236
6 changed files with 7 additions and 9 deletions

View File

@ -185,7 +185,7 @@ class Embark {
} }
initTests(options) { initTests(options) {
let Test = require('./core/test.js'); let Test = require('./tests/test.js');
return new Test(options); return new Test(options);
} }
@ -221,7 +221,7 @@ class Embark {
} }
runTests(file) { runTests(file) {
let RunTests = require('./core/run_tests.js'); let RunTests = require('./tests/run_tests.js');
RunTests.run(file); RunTests.run(file);
} }
@ -229,7 +229,7 @@ class Embark {
// temporary until next refactor // temporary until next refactor
Embark.initTests = function(options) { Embark.initTests = function(options) {
let Test = require('./core/test.js'); let Test = require('./tests/test.js');
return new Test(options); return new Test(options);
}; };

View File

@ -1,10 +1,8 @@
var async = require('async'); var async = require('async');
//require("../utils/debug_util.js")(__filename, async); //require("../utils/debug_util.js")(__filename, async);
var Web3 = require('web3'); var Web3 = require('web3');
var Engine = require('../core/engine.js');
var Engine = require('./engine.js'); var RunCode = require('../core/runCode.js');
var RunCode = require('./runCode.js');
var TestLogger = require('./test_logger.js'); var TestLogger = require('./test_logger.js');
var getSimulator = function() { var getSimulator = function() {

View File

@ -1,7 +1,7 @@
/*globals describe, it*/ /*globals describe, it*/
let Compiler = require('../lib/contracts/compiler.js'); let Compiler = require('../lib/contracts/compiler.js');
let SolidityCompiler = require('../lib/modules/solidity'); 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 File = require('../lib/core/file.js');
let assert = require('assert'); let assert = require('assert');
let fs = require('fs'); let fs = require('fs');

View File

@ -2,7 +2,7 @@
let ContractsManager = require('../lib/contracts/contracts.js'); let ContractsManager = require('../lib/contracts/contracts.js');
let Logger = require('../lib/core/logger.js'); let Logger = require('../lib/core/logger.js');
let File = require('../lib/core/file.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 assert = require('assert');
let fs = require('fs'); let fs = require('fs');