This commit is contained in:
namniak
2014-06-27 00:31:51 -04:00
parent e9951d2934
commit 6ddb18a127
1442 changed files with 274017 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# Usage examples
## Wildcards
In this example, `grunt nodeunit:all` or `grunt nodeunit` will test all files ending with `_test.js` in the `test` directory.
```js
// Project configuration.
grunt.initConfig({
nodeunit: {
all: ['test/*_test.js']
}
});
```
With a slight modification, `grunt nodeunit:all` will test files matching the same pattern in the `test` directory _and all subdirectories_.
```js
// Project configuration.
grunt.initConfig({
nodeunit: {
all: ['test/**/*_test.js']
}
});
```