mocha
mocha copied to clipboard
🚀 Feature: Test metadata
99% of the time grep serves my needs but recently we have a need for running/not running tests (the same tests) under many different conditions (think like a selenium situation on multiple browsers) and only some tests apply in some situations...
Similar to what rspec does this is what I would like to do:
// the metadata itself is irrelevant but there are some uses in my
// particular instance(related to multiple different "host" environments like browsers
suite('my cool thing', { browsers: ['not-ie6'] }, function() {
});
My initial reaction is to put this in some external repo that extends mocha but I wonder if this is useful enough to put in the core lib so others can use that metadata to extend mocha's behaviors in their extension libraries/projects.
Is this something that would be accepted into core mocha?