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,11 +1,11 @@
require('../test_utils.js')()
var ctrl = require('../lib/core.js')
var opts = { extra_args: [ '--quiet'] }
describe("Server Commands", function() {
before(startMaxScale)
var ctrl = require('maxctrl-core')
var opts = { extra_args: [ '--quiet'] }
it('create server', function() {
return ctrl.execute('create server server5 127.0.0.1 3003'.split(' '), opts)
.then(function() {