From e76af886bf4779db7988c4444b9cfd4173bbf901 Mon Sep 17 00:00:00 2001 From: wanderer Date: Sat, 31 Jan 2015 18:26:29 -0500 Subject: [PATCH] updated test loader --- index.js | 25 +++++++++++++++++++------ package.json | 2 +- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 6db56cc55..aa4cd51e1 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,19 @@ -module.exports = { - basicTests: require('require-all')(__dirname + '/BasicTests/'), - trieTests: require('require-all')(__dirname + '/TrieTests/'), - stateTests: require('require-all')(__dirname + '/StateTests/'), - vmTests: require('require-all')(__dirname + '/VMTests') -}; +var tests = module.exports = {}; + +Object.defineProperties(tests, { + blockTests: { + get: require('require-all').bind(this, __dirname + '/BlockTests') + }, + basicTests: { + get: require('require-all').bind(this, __dirname + '/BasicTests/') + }, + trieTests: { + get: require('require-all').bind(this, __dirname + '/TrieTests/') + }, + stateTests: { + get: require('require-all').bind(this, __dirname + '/StateTests/') + }, + vmTests: { + get: require('require-all').bind(this, __dirname + '/VMTests') + } +}); diff --git a/package.json b/package.json index 8aec430fe..318006032 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ethereum-tests", - "version": "0.0.1", + "version": "0.0.2", "description": "tests for ethereum", "main": "index.js", "scripts": {