Skip to content

Commit a63bf2a

Browse files
authored
Merge pull request #2 from testspace-samples/development
Development
2 parents dfcdfb3 + 6b8b092 commit a63bf2a

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

gulpfile.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ var jscs = require('gulp-jscs');
1111
var jscs = require('gulp-jscs-custom');
1212
var isWin = /^win/.test(process.platform);
1313

14+
function handleError(err) {
15+
console.log(err.toString());
16+
this.emit('end');
17+
}
18+
1419
gulp.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

3136
gulp.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+
3944
gulp.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']

readme.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,9 @@
77
Sample 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

0 commit comments

Comments
 (0)