Lines Matching refs:runner

1604 Mocha.prototype._growl = function(runner, reporter) {  argument
1607 runner.on('end', function(){
1610 var msg = stats.failures + ' of ' + runner.total + ' tests failed';
1826 var runner = new exports.Runner(suite, options.delay);
1827 var reporter = new this._reporter(runner, options);
1828 runner.ignoreLeaks = false !== options.ignoreLeaks;
1829 runner.fullStackTrace = options.fullStackTrace;
1830 runner.asyncOnly = options.asyncOnly;
1831 if (options.grep) runner.grep(options.grep, options.invert);
1832 if (options.globals) runner.globals(options.globals);
1833 if (options.growl) this._growl(runner, reporter);
1845 return runner.run(done);
2204 function Base(runner) { argument
2209 if (!runner) return;
2210 this.runner = runner;
2212 runner.stats = stats;
2214 runner.on('start', function(){
2218 runner.on('suite', function(suite){
2223 runner.on('test end', function(test){
2228 runner.on('pass', function(test){
2241 runner.on('fail', function(test, err){
2248 runner.on('end', function(){
2253 runner.on('pending', function(){
2467 function Doc(runner) { argument
2468 Base.call(this, runner);
2472 , total = runner.total
2479 runner.on('suite', function(suite){
2488 runner.on('suite end', function(suite){
2496 runner.on('pass', function(test){
2502 runner.on('fail', function(test, err){
2533 function Dot(runner) { argument
2534 Base.call(this, runner);
2541 runner.on('start', function(){
2545 runner.on('pending', function(test){
2550 runner.on('pass', function(test){
2559 runner.on('fail', function(test, err){
2564 runner.on('end', function(){
2603 function HTMLCov(runner) { argument
2610 JSONCov.call(this, runner, false);
2612 runner.on('end', function(){
2680 function HTML(runner) { argument
2681 Base.call(this, runner);
2685 , total = runner.total
2734 runner.on('suite', function(suite){
2747 runner.on('suite end', function(suite){
2752 runner.on('fail', function(test, err){
2753 if ('hook' == test.type) runner.emit('test end', test);
2756 runner.on('test end', function(test){
2969 function JSONCov(runner, output) { argument
2973 Base.call(this, runner);
2979 runner.on('test end', function(test){
2983 runner.on('pass', function(test){
2987 runner.on('fail', function(test){
2991 runner.on('end', function(){
3125 function List(runner) { argument
3126 Base.call(this, runner);
3130 , total = runner.total;
3132 runner.on('start', function(){
3136 runner.on('pass', function(test){
3140 runner.on('fail', function(test, err){
3146 runner.on('end', function(){
3192 function JSONReporter(runner) { argument
3194 Base.call(this, runner);
3201 runner.on('test end', function(test){
3205 runner.on('pass', function(test){
3209 runner.on('fail', function(test){
3213 runner.on('pending', function(test){
3217 runner.on('end', function(){
3226 runner.testResults = obj;
3306 function Landing(runner) { argument
3307 Base.call(this, runner);
3312 , total = runner.total
3323 runner.on('start', function(){
3328 runner.on('test end', function(test){
3351 runner.on('end', function(){
3392 function List(runner) { argument
3393 Base.call(this, runner);
3399 runner.on('start', function(){
3403 runner.on('test', function(test){
3407 runner.on('pending', function(test){
3413 runner.on('pass', function(test){
3421 runner.on('fail', function(test, err){
3426 runner.on('end', self.epilogue.bind(self));
3468 function Markdown(runner) { argument
3469 Base.call(this, runner);
3515 generateTOC(runner.suite);
3517 runner.on('suite', function(suite){
3524 runner.on('suite end', function(suite){
3528 runner.on('pass', function(test){
3536 runner.on('end', function(){
3538 process.stdout.write(generateTOC(runner.suite));
3565 function Min(runner) { argument
3566 Base.call(this, runner);
3568 runner.on('start', function(){
3575 runner.on('end', this.epilogue.bind(this));
3610 function NyanCat(runner) { argument
3611 Base.call(this, runner);
3625 runner.on('start', function(){
3630 runner.on('pending', function(test){
3634 runner.on('pass', function(test){
3638 runner.on('fail', function(test, err){
3642 runner.on('end', function(){
3887 function Progress(runner, options) { argument
3888 Base.call(this, runner);
3894 , total = runner.total
3907 runner.on('start', function(){
3913 runner.on('test end', function(){
3939 runner.on('end', function(){
3980 function Spec(runner) { argument
3981 Base.call(this, runner);
3992 runner.on('start', function(){
3996 runner.on('suite', function(suite){
4001 runner.on('suite end', function(suite){
4006 runner.on('pending', function(test){
4011 runner.on('pass', function(test){
4028 runner.on('fail', function(test, err){
4033 runner.on('end', self.epilogue.bind(self));
4070 function TAP(runner) { argument
4071 Base.call(this, runner);
4079 runner.on('start', function(){
4080 var total = runner.grepTotal(runner.suite);
4084 runner.on('test end', function(){
4088 runner.on('pending', function(test){
4092 runner.on('pass', function(test){
4097 runner.on('fail', function(test, err){
4103 runner.on('end', function(){
4157 function XUnit(runner, options) { argument
4158 Base.call(this, runner);
4170 runner.on('pending', function(test){
4174 runner.on('pass', function(test){
4178 runner.on('fail', function(test){
4182 runner.on('end', function(){