Skip to content

Commit

Permalink
remove casperjs tests in 0.5.6-no-jsdom
Browse files Browse the repository at this point in the history
  • Loading branch information
robhrt7 committed Sep 20, 2015
1 parent 3e9ed9d commit 89a3b0c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 24 deletions.
23 changes: 1 addition & 22 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ var getLoaderPackageName = function() {
};

module.exports = function(grunt) {
var appPort = grunt.option('app-port') || 8080;

// load all grunt tasks matching the `grunt-*` pattern
require(getLoaderPackageName())(grunt);

Expand Down Expand Up @@ -196,13 +194,6 @@ module.exports = function(grunt) {
noApp: {
src: ['test/unit/lib/**/*.js']
}
},

casperjs: {
options: {
casperjsOptions: ['--app-port='+appPort]
},
files: ['test/functional/**/*.js']
}
});

Expand Down Expand Up @@ -307,8 +298,7 @@ module.exports = function(grunt) {
]);

grunt.registerTask('ci-post-run', [
'test',
'test-func'
'test'
]);

grunt.registerTask('ci-post-run-win', [
Expand All @@ -332,15 +322,4 @@ module.exports = function(grunt) {
grunt.task.run('mochaTest');
}
});

// Test task. Execute with running app
grunt.registerTask('test-func', 'Run ALL functional tests or specified by second param', function () {
// if custom mask set - `grunt test --spec=test/unit/middleware/**/*.js`
var spec = grunt.option('spec');
if (spec) {
grunt.config.set('casperjs.files', [spec]);
}

grunt.task.run('casperjs');
});
};
1 change: 0 additions & 1 deletion docs/build-tasks/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ $ npm run lint

$ npm test
$ npm run test:unit
$ npm run test:func
```

* `npm run build` - default build command for preparing SourceJS assets, used as a post-install hook and after plugin installation
Expand Down
2 changes: 2 additions & 0 deletions docs/clarify/readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
**NOTE: Clarify is not available in `no-jsdom` build**

SourceJS middleware, that allows to open separate documentation examples in custom or clean environment for component testing and development.

## General information
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"watch:css": "grunt watch-css",
"test": "grunt ci-pre-run && node app.js --test",
"test:unit": "grunt test",
"test:func": "grunt test-func",
"ci-test": "grunt ci-pre-run && node app.js --test --log trace",
"ci-test-win": "grunt ci-pre-run && node app.js --post-grunt ci-post-run-win --test --log trace --no-watch"
},
Expand Down

0 comments on commit 89a3b0c

Please sign in to comment.