-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs for meta-generated tests #57
Comments
+1 |
Would this be similar to PHPUnit data providers, or rather like this? function genTests(db) {
test('one thing', function() { /* ... */ });
test('another thing', function() { /* ... */ });
};
suite('In-memory database', function() {
genTests(new InMemoryDB());
});
suite('Remote database', function() {
genTests(new RemoteDB('10.1.1.1'));
});
suite('Filesystem database', function() {
genTests(new FilesystemDB(__dirname + '/_test.db'));
}); |
I have no idea what this ticket even is. @felixrabe can you enlighten me? |
@boneskull On http://visionmedia.github.io/mocha/, Cmd-F for "meta-generate". It appears exactly once, in the features section:
But it is not described anywhere. |
Hm. I don't know what the hell "meta-generation" is, but my WAG is creating It'd be cool to have the "recommended way" to do this in the docs or wiki. |
I don't know how it is intended / recommended to work, but I'm using my example above just fine. |
Fix #57: Add section on meta-generated tests
No description provided.
The text was updated successfully, but these errors were encountered: