Permalink
Browse files

Inline source of code coverage for better integration with VSTS build (

…#21)

* vs folder

* add .vs and .github in .gitignore

* delete tools folder and ps1 + update Readme

* add Hosam Kamel to contributors list

* add inline source for coverage

* add inline sources coverage into the test script
  • Loading branch information...
mikaelkrief authored and Willy-Peter Schaub committed Jun 13, 2017
1 parent 4772aa7 commit 15e5a57d56d62f2419b3528529449a7af3502291
Showing with 18 additions and 4 deletions.
  1. +2 −1 .gitignore
  2. +2 −0 README.md
  3. +8 −0 gulpfile.js
  4. +6 −3 package.json
View
@@ -6,4 +6,5 @@ TestsResults
/.vs/
/.github/
**/*.sqlite
xunit.xml
xunit.xml
coverage-inline
View
@@ -141,6 +141,8 @@ And npm dependencies list are :
- [Yeoman-test](https://www.npmjs.com/package/yeoman-test)
- [Yo](https://www.npmjs.com/package/yo)
- [yosay](https://www.npmjs.com/package/yosay)
- [gulp](https://www.npmjs.com/package/gulp)
- [gulp-inline-source](https://www.npmjs.com/package/gulp-inline-source)
The generated extensions needs these 3 rd libraries
View
@@ -0,0 +1,8 @@
var gulp = require('gulp');
var inlinesource = require('gulp-inline-source');
gulp.task('inlinesource', function () {
return gulp.src('./coverage/**/*.html')
.pipe(inlinesource({attribute: false}))
.pipe(gulp.dest('./coverage-inline'));
});
View
@@ -48,7 +48,9 @@
"typescript": "^2.1.4",
"yo": "^1.8.5",
"xunit-file": "^1.0.0",
"snyk": "^1.24.6"
"snyk": "^1.24.6",
"gulp" : "^3.9.1",
"gulp-inline-source": "^3.1.0"
},
"eslintConfig": {
"extends": "xo-space",
@@ -58,7 +60,8 @@
},
"license": "MIT",
"scripts": {
"test": "istanbul cover --report cobertura --report html node_modules/mocha/bin/_mocha -- -R xunit-file",
"snyk:test":"snyk test"
"test": "istanbul cover --report cobertura --report html node_modules/mocha/bin/_mocha -- -R xunit-file && npm run inlinesource",
"snyk:test":"snyk test",
"inlinesource": "gulp inlinesource"
}
}

0 comments on commit 15e5a57

Please sign in to comment.