29 строки
689 B
JavaScript
Executable File
29 строки
689 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
'use strict'
|
|
|
|
var path = require('path')
|
|
var spawn = require('child_process').spawn
|
|
var config = require('../config').getProperties()
|
|
var TestServer = require('../test/test_server')
|
|
|
|
TestServer.start(config, false)
|
|
.then(
|
|
function (server) {
|
|
var cp = spawn(
|
|
path.join(path.dirname(__dirname), 'node_modules/.bin/mocha'),
|
|
['test/remote'],
|
|
{ stdio: 'inherit' }
|
|
)
|
|
|
|
cp.on('close', function(code) {
|
|
server.stop()
|
|
})
|
|
}
|
|
)
|
|
|