Skip to content

Commit

Permalink
Defect/mac build failure (#404)
Browse files Browse the repository at this point in the history
* added error output to extension test command

* fixed workspace

* changed junit path slashses
  • Loading branch information
Anthony Dresser authored Nov 23, 2016
1 parent 3ac8451 commit 5231db6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,17 @@ gulp.task('ext:copy', gulp.series('ext:copy-tests', 'ext:copy-js', 'ext:copy-con
gulp.task('ext:build', gulp.series('ext:lint', 'ext:compile', 'ext:copy'));

gulp.task('ext:test', (done) => {
process.env.JUNIT_REPORT_PATH = process.env['WORKSPACE'] + '\\test-reports\\ext_xunit.xml';
cproc.execSync('code --extensionDevelopmentPath="%WORKSPACE%" --extensionTestsPath="%WORKSPACE%/out/test" --verbose');
done();
let workspace = process.env['WORKSPACE'];
process.env.JUNIT_REPORT_PATH = workspace + '/test-reports/ext_xunit.xml';
cproc.exec(`code --extensionDevelopmentPath="${workspace}" --extensionTestsPath="${workspace}/out/test" --verbose`, (error, stdout, stderr) => {
if (error) {
console.error(`exec error: ${error}`);
process.exit(1);
}
console.log(`stdout: ${stdout}`);
console.log(`stderr: ${stderr}`);
done();
});
});

gulp.task('test', gulp.series('html:test', 'ext:test'));
Expand Down

0 comments on commit 5231db6

Please sign in to comment.