Skip to content

Commit

Permalink
lost history, committing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarrod Overson committed Sep 1, 2012
0 parents commit 69af8be
Show file tree
Hide file tree
Showing 27 changed files with 4,484 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
node_modules
_tmp
.idea
junit
1 change: 1 addition & 0 deletions .npmignore
@@ -0,0 +1 @@
/node_modules/
22 changes: 22 additions & 0 deletions LICENSE-MIT
@@ -0,0 +1,22 @@
Copyright (c) 2012 Jarrod Overson

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
67 changes: 67 additions & 0 deletions README.md
@@ -0,0 +1,67 @@
# grunt-jasmine-runner

Grunt task for running jasmine specs via phantomjs.

## Getting Started

Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: `npm install grunt-jasmine-runner`

Then add this line to your project's `grunt.js` gruntfile:

```javascript
grunt.loadNpmTasks('grunt-jasmine-runner');
```

## Config

- src : Your source files to test, loaded first
- helpers : Any helpers files to aid in testing, loaded next
- specs : Spec files that contain your jasmine tests
- timeout : The timeout where the tests are abandoned
- junit :
- output : The output directory for junit xml
- phantomjs : A hash of options to pass to phantomjs

```javascript
jasmine : {
src : 'src/**/*.js',
specs : 'specs/**/*Spec.js',
helpers : 'specs/helpers/*.js',
timeout : 10000,
junit : {
output : 'junit/'
},
phantomjs : {
'ignore-ssl-errors' : true
}
},
```

## PhantomJS

The base jasmine task requires phantomjs to be installed and in the executable path. Download [phantomjs here](http://phantomjs.org/)

## Running

After successful configuration, you can run your tests with :

```grunt jasmine```

## Release History

* v0.5.0: (internal) Full rewrite again to dynamically generate specrunner.
* v0.4.1: (internal) Logging
* v0.4.0: (internal) Full rewrite in anticipation of grunt 0.4.0
* v0.3.0: (internal) Adding multiple reporters
* v0.2.5: (internal) Refactoring for performance
* v0.2.4: (internal) Fix phantom config
* v0.2.3: (internal) Update phantom runner, add error logging
* v0.2.2: forked from grunt-jasmine-task

## License
Copyright (c) 2012 Jarrod Overson
Licensed under the MIT license.

Portions adapted from grunt core tasks and are copyright Ben Alman and licensed under the MIT license

Forked from https://github.com/creynders/grunt-jasmine-task by Camille Reynders. No portions of the original code remain.
2 changes: 2 additions & 0 deletions bin/grunt-jasmine-runner
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require('grunt').npmTasks('grunt-jasmine-runner').cli();
43 changes: 43 additions & 0 deletions grunt.js
@@ -0,0 +1,43 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
test: {
files: ['test/**/*_test.js']
},
lint: {
files: ['grunt.js', 'tasks/**/*.js']
},
watch: {
files: '<config:jasmine.specs>',
tasks: 'jasmine-server'
},
jasmine : {
specs : 'spec/**/*.js'
},
jshint: {
options: {
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: {}
}
});

// Load local tasks.
grunt.loadTasks('tasks');

// Default task.
grunt.registerTask('default', 'lint jasmine test');

};
1 change: 1 addition & 0 deletions jasmine
Submodule jasmine added at 921f52
47 changes: 47 additions & 0 deletions package.json
@@ -0,0 +1,47 @@
{
"name" : "grunt-jasmine-runner",
"description" : "Grunt task for running Jasmine specs",
"version" : "0.4.1",
"homepage" : "https://github.com/jsoverson/grunt-jasmine-runner",
"author" : {
"name" : "Jarrod Overson",
"email" : "jsoverson@gmail.com",
"url" : "http://jarrodoverson.com/"
},
"repository" : {
"type" : "git",
"url" : "git://github.com/jsoverson/grunt-jasmine-runner.git"
},
"bugs" : {
"url" : "https://github.com/jsoverson/grunt-jasmine-runner/issues"
},
"licenses" : [
{
"type" : "MIT",
"url" : "https://github.com/jsoverson/grunt-jasmine-runner/blob/master/LICENSE-MIT"
}
],
"main" : "grunt.js",
"bin" : "bin/grunt-jasmine-runner",
"engines" : {
"node" : "*"
},
"scripts" : {
"test" : "grunt test"
},
"dependencies" : {
"connect" : "2.4.4",
"temporary" : "~0.0.2",
"semver" : "1.0.14",
"eventemitter2" : "0.4.9",
"open" : "0.0.2"
},
"devDependencies" : {
"grunt" : "~0.3.9"
},
"keywords" : [
"gruntplugin",
"jasmine",
"phantomjs"
]
}
5 changes: 5 additions & 0 deletions spec/basicSpec.js
@@ -0,0 +1,5 @@
describe('A basic test',function(){
it('Should have one passing spec',function(){
expect(true).toBeTruthy();
});
});

0 comments on commit 69af8be

Please sign in to comment.