|
|
@@ -1,16 +1,15 @@
|
|
|
"use strict";
|
|
|
-
|
|
|
-/**
|
|
|
- * Create benchmarks defined similarly to tests in the mocha exports UI
|
|
|
- */
|
|
|
var path = require("path"),
|
|
|
benchmark = require("benchmark"),
|
|
|
reporter = require("./reporter");
|
|
|
|
|
|
/**
|
|
|
- * Runner for benchmarks defined similarly to tests in the mocha exports UI
|
|
|
+ * Runner for benchmarks.
|
|
|
+ * @method runner
|
|
|
* @param {Object|Array|String} tests The tests walk and execute
|
|
|
- * @private
|
|
|
+ * if {Object}, should be in format similar to mocha `exports` UI
|
|
|
+ * if {String}, should be reference to file that exports tests
|
|
|
+ * if {Array}, should be list of tests
|
|
|
*/
|
|
|
module.exports = function runner(tests) { //jshint maxcomplexity:19
|
|
|
var ctx = this && this !== global && this !== require("./") ? this : {};
|