artillery
Version:
Flexible and powerful toolkit for load and functional testing
32 lines (23 loc) • 746 B
JavaScript
/* 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/. */
;
const core = require('../core');
const version = require('../package.json').version;
const util = require('./util');
const createReporter = require('./console-reporter');
function createGlobalObject(opts) {
if (typeof global.artillery !== 'undefined') {
return;
}
global.artillery = {
version: version,
util: {
template: require('../util').template
}
};
global.artillery.__createReporter = createReporter;
global.artillery.__util = util;
}
createGlobalObject();
module.exports = core;