MXS-1300: Un-modularize the core

Making the core a module proved to bring more problems than it solved. For
the sake of simplicity in installation and code coverage reporting, the
core is now completely contained in the `lib/` directory.

Also added preliminary coverage reporting with nyc.
This commit is contained in:
Markus Mäkelä
2017-07-19 08:03:44 +03:00
parent 0f1a427458
commit cf8028a5ce
25 changed files with 77 additions and 86 deletions

View File

@ -1,5 +1,8 @@
require('../test_utils.js')()
var ctrl = require('../lib/core.js')
var opts = { extra_args: [ '--quiet'] }
describe("Server states", function() {
before(function() {
return startMaxScale()
@ -8,9 +11,6 @@ describe("Server states", function() {
})
})
var ctrl = require('maxctrl-core')
var opts = { extra_args: [ '--quiet'] }
it('set correct state', function() {
return ctrl.execute('set server server2 master'.split(' '), opts)
.then(function() {