- moved es install/start/stop logic into a seperate script - `grunt test` now runs the integration tests once for each version of ES we support - grunt can now install and run elasticearch (using grunt-run, pure js solution coming later) - included seperate es.sh script specifically for starting or stopping elasticsearch - url aliases, api, yaml_suite/index.js, and yaml_tests.json, are all now duplicated for 0_90 support - the client now accepts an apiVersion argument (undocumented) which defaults to 'master' but can be '0.90' - The yaml test runner will now check the name of the ES instance it is connecting to, preventing accidental wiping of ES
35 lines
622 B
JavaScript
35 lines
622 B
JavaScript
var unitTests = ['test/unit/test_*.js'];
|
|
|
|
module.exports = {
|
|
unit: {
|
|
src: unitTests
|
|
},
|
|
|
|
integration_master: {
|
|
src: 'test/integration/yaml_suite/index.js'
|
|
},
|
|
|
|
integration_0_90: {
|
|
src: 'test/integration/yaml_suite/index_0_90.js'
|
|
},
|
|
|
|
// run the unit tests, and update coverage.html
|
|
make_coverage_html: {
|
|
src: unitTests,
|
|
options: {
|
|
reporter: 'html-cov',
|
|
output: 'coverage.html'
|
|
}
|
|
},
|
|
|
|
// for use by travis
|
|
ship_coverage: {
|
|
src: unitTests,
|
|
options: {
|
|
reporter: 'mocha-lcov-reporter',
|
|
coveralls: {
|
|
serviceName: 'travis-ci'
|
|
}
|
|
}
|
|
}
|
|
}; |