Added the browser based test suite, have it running automatically via PhantomJS with grunt, all tests are passing except one, which requires PhantomJS send a body with a DELETE request
This commit is contained in:
20
test/integration/yaml_suite/argv.js
Normal file
20
test/integration/yaml_suite/argv.js
Normal file
@ -0,0 +1,20 @@
|
||||
var path = require('path');
|
||||
var _ = require('../../../src/lib/utils');
|
||||
|
||||
var defaults = {
|
||||
executable: process.env.ES_HOME ? path.join(process.env.ES_HOME, './bin/elasticsearch') : null,
|
||||
clusterName: 'yaml-test-runner',
|
||||
dataPath: '/tmp/yaml-test-runner',
|
||||
host: 'localhost',
|
||||
port: '9200',
|
||||
match: '**'
|
||||
};
|
||||
|
||||
if (process.browser) {
|
||||
module.exports = defaults;
|
||||
} else {
|
||||
module.exports = require('optimist')
|
||||
.default(defaults)
|
||||
.boolean('createServer')
|
||||
.argv;
|
||||
}
|
||||
Reference in New Issue
Block a user