-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from adamgruber/develop
Develop
- Loading branch information
Showing
5 changed files
with
126 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
/* Test courtesy of @adaphi */ | ||
'use strict' | ||
|
||
describe('mochawesome hook test', function() { | ||
|
||
// Change this to drastically alter the memory impact | ||
var numTests = 1000; | ||
|
||
before('before hook 1', function(done) { | ||
done(); | ||
}); | ||
|
||
before('before hook 2', function(done) { | ||
done(); | ||
}); | ||
|
||
before('before hook 3', function(done) { | ||
done(); | ||
}); | ||
|
||
before('before hook 4', function(done) { | ||
done(); | ||
}); | ||
|
||
before('before hook 5', function(done) { | ||
done(); | ||
}); | ||
|
||
before('before hook 6', function(done) { | ||
done(); | ||
}); | ||
|
||
before('before hook 7', function(done) { | ||
done(); | ||
}); | ||
|
||
before('before hook 8', function(done) { | ||
done(); | ||
}); | ||
|
||
beforeEach('beforeEach hook 1', function(done) { | ||
done(); | ||
}); | ||
|
||
beforeEach('beforeEach hook 2', function(done) { | ||
done(); | ||
}); | ||
|
||
beforeEach('beforeEach hook 3', function(done) { | ||
done(); | ||
}); | ||
|
||
beforeEach('beforeEach hook 4', function(done) { | ||
done(); | ||
}); | ||
|
||
afterEach('afterEach hook 1', function(done) { | ||
done(); | ||
}); | ||
|
||
afterEach('afterEach hook 2', function(done) { | ||
done(); | ||
}); | ||
|
||
after('after hook 1', function(done) { | ||
done(); | ||
}); | ||
|
||
after('after hook 2', function(done) { | ||
done(); | ||
}); | ||
|
||
for (var i=1; i<=numTests; i++) { | ||
it( 'test ' + i, genTestBody() ); | ||
} | ||
|
||
function genTestBody() { | ||
return function(done) { | ||
// This just needs to contain a lot of stuff. | ||
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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