Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use strict';

module.exports = function(grunt) {

grunt.loadNpmTasks('grunt-mocha');
grunt.initConfig({

mocha: {
browserTests: {
src: ['test/index.html'],
options: {
log: true,
reporter: 'spec',
growlOnFail: false,
growlOnSuccess: false
}
}
}
});

grunt.task.registerTask('browser-tests', ['mocha']);
};
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,22 @@ Black, Red, Green, Yellow, Blue, Magenta, Cyan, Grey, White
```

### Tests
Run tests with:
Run all tests with:

```
npm run test
```

Run terminal tests with:

```
npm run test-terminal
```

Run browser tests with:

```
npm test
npm run test-browser
```

### Build
Expand Down
Loading