Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Don't look for unit tests in dot-files and gitignore files/dirs.
Browse files Browse the repository at this point in the history
  • Loading branch information
0cjs authored and nishantjr committed Jan 24, 2016
1 parent f2744f6 commit 4860c05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,10 @@ unit tests and functional tests. There are gulp targets to find and
run the various kinds of tests, and the tests themselves use the [tape]
framework.

* Unit tests are in `*.jt` files anywhere in the repo; the build system
will find these and execute them individually by running `node` on them.
* Unit tests are in `*.jt` files anywhere in the repo (excepting
directories and files start with a dot and anything ignored by
`.gitignore`). The build system will find these and execute them
individually by running `node` on them.

[tape]: https://www.npmjs.com/package/tape

Expand Down
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict'

const gulp = require('gulp')
const exclude_gitignore = require('gulp-exclude-gitignore')

gulp.task('test', ['unit-test'])

Expand All @@ -10,5 +11,6 @@ gulp.task('unit-test', () => {
faucet = require('faucet')
return gulp
.src('**/*.jt')
.pipe(exclude_gitignore())
.pipe(tape({ reporter: faucet() }))
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"devDependencies": {
"faucet": "0.0.1",
"gulp": "^3.9.0",
"gulp-exclude-gitignore": "^1.0.0",
"gulp-tape": "0.0.7",
"tape": "^4.4.0"
}
Expand Down

0 comments on commit 4860c05

Please sign in to comment.