Support a "no_server" flag in test config.

* Will use a running instance of rippled (possibly in a debugger).
* Modify all tests to respect the server_default value.
* Fail test if new account already exists and has a balance.
* README.md with instructions for advanced test debugging, particularly using no_server.
This commit is contained in:
Edward Hennis
2014-12-23 20:44:36 -05:00
committed by Nik Bougalis
parent 7f5f73887d
commit a5df3f1747
6 changed files with 157 additions and 27 deletions

View File

@@ -3,6 +3,7 @@
//
var path = require("path");
var extend = require('extend');
var testconfig = require("./testconfig.js");
exports.accounts = testconfig.accounts;
@@ -59,6 +60,11 @@ exports.servers = {
}
};
exports.servers.debug = extend({
no_server: true,
debug_logfile: "debug.log"
}, exports.servers.alpha);
exports.http_servers = {
// A local test server
"zed" : {
@@ -67,4 +73,4 @@ exports.http_servers = {
}
};
// vim:sw=2:sts=2:ts=8:et
// vim:sw=2:sts=2:ts=8:et