diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..d617ca7 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,30 @@ +/* + * gruntacular + * https://github.com/OpenWebStack/gruntacular + * + * Copyright (c) 2013 Dave Geddes + * Licensed under the MIT license. + */ + +'use strict'; + +module.exports = function(grunt) { + grunt.initConfig({ + testacular: { + continuous: { + configFile: 'testacular.conf.js', + singleRun: true, + browsers: ['Chrome'] + }, + dev: { + configFile: 'testacular.conf.js', + browsers: ['Chrome'] + } + } + }); + + //Load gruntacular plugin + grunt.loadTasks('tasks'); + + grunt.registerTask('test', ['testacular:continuous']); +}; \ No newline at end of file diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..7434e78 --- /dev/null +++ b/TODO.md @@ -0,0 +1,5 @@ +[] tests +[] support the options object to close #3 +[] update docs +[] make config file optional +[] version bump \ No newline at end of file diff --git a/test/gruntacular-test.js b/test/gruntacular-test.js new file mode 100644 index 0000000..d0b5a00 --- /dev/null +++ b/test/gruntacular-test.js @@ -0,0 +1,5 @@ +describe('testacular', function(){ + it('should be awesome', function(){ + expect('foo').to.be.a('string'); + }); +}); \ No newline at end of file diff --git a/testacular.conf.js b/testacular.conf.js new file mode 100644 index 0000000..5ec5d2b --- /dev/null +++ b/testacular.conf.js @@ -0,0 +1,7 @@ +//TODO make the configFile optional +files = [ + MOCHA, + MOCHA_ADAPTER, + 'node_modules/expect.js/expect.js', + 'test/**/*.js' +]; \ No newline at end of file