Permalink
Browse files

added gruntfile for testing tasks and formated bot.js, also added .js…

…hintrc file to manage code quality rules per https://github.com/jsoverson/grunt-contrib-jasmine-example
  • Loading branch information...
Jason Fox
Jason Fox committed May 1, 2013
1 parent 3a441d1 commit 00e27bb8624c96164c673af19cf4aba84568da75
Showing with 212 additions and 92 deletions.
  1. +24 −0 .jshintrc
  2. +30 −0 Gruntfile.js
  3. +9 −2 README.md
  4. +149 −90 src/bot.js
View
@@ -0,0 +1,24 @@
{
"curly" : true,
"eqeqeq" : true,
"immed" : true,
"latedef" : true,
"newcap" : true,
"noarg" : true,
"sub" : true,
"undef" : true,
"boss" : true,
"eqnull" : true,
"node" : true,
"es5" : true,
"globals" : {
"it" : false,
"xit" : false,
"describe" : false,
"xdescribe" : false,
"beforeEach" : false,
"afterEach" : false,
"expect" : false,
"spyOn" : false
}
}
View
@@ -0,0 +1,30 @@
module.exports = function(grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
jasmine: {
src: 'src/**/*.js',
options: {
specs: 'spec/**/*.js'
}
},
jshint: {
all: [
'Gruntfile.js',
'src/**/*.js',
'spec/**/*.js'],
options: {
jshintrc: '.jshintrc'
}
}
});
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('test', ['jshint', 'jasmine']);
grunt.registerTask('default', ['test']);
};
View
@@ -2,10 +2,10 @@
## Your new mobile app testing robot
### ...that also knows how to [dance](http://youtu.be/lbjilf5cz88))
### ...that also knows how to [dance](http://youtu.be/lbjilf5cz88))
<span>
![Tapsterbot](http://hugs.github.io/img/jason-huggins-with-tapster.jpg)
![Tapsterbot](http://hugs.github.io/img/jason-huggins-with-tapster.jpg)
</span>
##Dependencies
@@ -30,3 +30,10 @@
3. `calibrate()` the bot to the phone
4. Open the control page on your computer: `http://localhost:8011/control`
5. Make clicking actions with your computer, see them happen to your phone!
##Development
Run the following [grunt](http://gruntjs.com/) command to execute testing and code quality checks:
grunt test
Put all [jasmine](http://pivotal.github.io/jasmine/) specs in the `spec` folder.
Oops, something went wrong.

0 comments on commit 00e27bb

Please sign in to comment.