Last active
January 9, 2016 13:16
-
-
Save hassy/d5e3c9bb4ed151166abe to your computer and use it in GitHub Desktop.
Example for using minigun-core
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var minigun = require('minigun-core').runner; | |
var script = require('./my-test-script.json'); | |
var ee = minigun(script); | |
ee.on('phaseStarted', function(spec) {}); // fired when a phase begins; spec is the phase definition (from the script) | |
ee.on('phaseCompleted', function(spec) {}); // fired when a phase completes; spec is as above | |
ee.on('stats', function(stats) {}); // fired every 10s; stats is a JSON object with stats for the previous 10s | |
ee.on('done', function(report) {}); // fired when the test completes, report is a JSON object with all stats | |
ee.run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mark-r-m if you have any more questions, feel free to ping me on https://gitter.im/shoreditch-ops/minigun