updated test loader

This commit is contained in:
wanderer 2015-01-31 18:26:29 -05:00
parent b4b280c4ff
commit e76af886bf
2 changed files with 20 additions and 7 deletions

View File

@ -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')
}
});

View File

@ -1,6 +1,6 @@
{
"name": "ethereum-tests",
"version": "0.0.1",
"version": "0.0.2",
"description": "tests for ethereum",
"main": "index.js",
"scripts": {