File tree Expand file tree Collapse file tree 2 files changed +12
-18
lines changed
Expand file tree Collapse file tree 2 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ var jscs = require('gulp-jscs');
1111var jscs = require ( 'gulp-jscs-custom' ) ;
1212var isWin = / ^ w i n / . test ( process . platform ) ;
1313
14+ function handleError ( err ) {
15+ console . log ( err . toString ( ) ) ;
16+ this . emit ( 'end' ) ;
17+ }
18+
1419gulp . task ( 'jsdoc' , shell . task ( [
1520 ( isWin ) ?
1621 '"node_modules/.bin/jsdoc.cmd" -c ./doc-config.json' :
@@ -30,20 +35,21 @@ gulp.task('lint', function () {
3035
3136gulp . task ( 'pre-test' , function ( ) {
3237 return gulp . src ( [ './src/**/*.js' ] )
33- // Covering files
38+ // Covering files
3439 . pipe ( istanbul ( ) )
35- // Force `require` to return covered files
40+ // Force `require` to return covered files
3641 . pipe ( istanbul . hookRequire ( ) ) ;
3742} ) ;
38-
43+
3944gulp . task ( 'test' , [ 'pre-test' ] , function ( ) {
4045 return gulp . src ( 'test/**/*.spec.js' )
4146 . pipe ( jasmine ( {
4247 reporter : new reporters . JUnitXmlReporter ( {
4348 savePath : 'test/reports'
4449 } )
4550 } ) )
46- // Creating the reports after tests ran
51+ . on ( "error" , handleError )
52+ // Creating the reports after tests ran
4753 . pipe ( istanbul . writeReports ( {
4854 dir : './test/reports/coverage' ,
4955 reporters : [ 'clover' ]
Original file line number Diff line number Diff line change 77Sample demonstrates techniques for using Testspace with Javascript code and the [ Jasmine test framework] ( http://jasmine.github.io/ ) together with [ Istanbul code coverage tool] ( https://gotwarlost.github.io/istanbul/ ) and [ Gulp JS build system] ( http://gulpjs.com/ ) .
88
99***
10- Using Multiple Online CI Services:
11-
12- [ ![ Build Status] ( https://travis-ci.org/testspace-samples/javascript.jasmine.svg?branch=master )] ( https://travis-ci.org/testspace-samples/javascript.jasmine )
13- [ ![ CircleCI] ( https://circleci.com/gh/testspace-samples/javascript.jasmine.svg?style=svg )] ( https://circleci.com/gh/testspace-samples/javascript.jasmine )
14- [ ![ Run Status] ( https://api.shippable.com/projects/5707eeda2a8192902e1bd7b4/badge?branch=master )] ( https://app.shippable.com/projects/5707eeda2a8192902e1bd7b4 )
15-
16- ***
17- Publising ** Test Content** using www.testspace.com
18-
19- [ ![ Space Health] ( https://samples.testspace.com/projects/165/spaces/804/badge )] ( https://samples.testspace.com/projects/165/spaces/804 " Test Cases ")
20- [ ![ Space Metric] ( https://samples.testspace.com/projects/165/spaces/804/metrics/755/badge )] ( https://samples.testspace.com/spaces/804/schema/Code%20Coverage " Code Coverage (branches) ")
21- [ ![ Space Metric] ( https://samples.testspace.com/projects/165/spaces/804/metrics/756/badge )] ( https://samples.testspace.com/spaces/804/schema/Code%20Coverage " Code Coverage (methods) ")
22- [ ![ Space Metric] ( https://samples.testspace.com/projects/165/spaces/804/metrics/758/badge )] ( https://samples.testspace.com/spaces/804/schema/Static%20Analysis " Static Analysis (issues) ")
23-
10+ Example branching only: ** development**
2411
12+ * Reference article: [ git branching workflow] ( https://git-scm.com/book/en/v1/Git-Branching-Branching-Workflows )
2513
2614***
2715
You can’t perform that action at this time.
0 commit comments