[16:54:27] 16:54:27.983 INFO: 7 source files to be analyzed
[16:54:28] 16:54:28.270 INFO: 7/7 source files have been analyzed
[16:54:28] 16:54:28.270 INFO: Test Coverage Sensor is started
[16:54:28] 16:54:28.271 INFO: Analysing [<myHome>/IdeaProjects/ui-adac/coverage/lcov.info]
[16:54:28] 16:54:28.283 WARN: Could not resolve 11 file paths in [<myHome>/IdeaProjects/ui-adac/coverage/lcov.info], first unresolved path: <myHome>/IdeaProjects/ui-adac/src/components/atoms/button/Button.jsx
{...}
module.exports = (gulp) => {
var options = {
sonar: {
host: {
url: 'http://<our-sonar-url>:9000'
},
projectKey: 'ui',
projectName: 'UI',
projectVersion: meta.version,
// comma-delimited string of source directories
sources: 'src',
language: 'js',
sourceEncoding: 'UTF-8',
javascript: {
lcov: {
reportPaths: 'coverage/lcov.info'
}
},
exec: {
// All these properties will be send to the child_process.exec method (see: https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback )
// Increase the amount of data allowed on stdout or stderr (if this value is exceeded then the child process is killed, and the gulp-sonar will fail).
maxBuffer : 1024*1024
}
}
};
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/fa263071-801e-4ba4-9ce4-10dc5d7b3551%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
const meta = require('../../package.json');
const sonar = require('gulp-sonar');
module.exports = (gulp) => {
var options = {
sonar: {
host: {
url: 'http://<url-to-sonar>'
},
projectKey: 'procect:key',
projectName: 'Project Name',
projectVersion: 'your.version.nr',
// comma-delimited string of source directories
sources: 'src',
language: 'js',
sourceEncoding: 'UTF-8',
javascript: {
lcov: {
reportPaths: 'coverage/lcov.info'
},
file: {
suffixes: '.js,.jsx'
}
},
exec: {
// All these properties will be send to the child_process.exec method (see: https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback )
// Increase the amount of data allowed on stdout or stderr (if this value is exceeded then the child process is killed, and the gulp-sonar will fail).
maxBuffer : 1024*1024
}
}
};
// gulp source doesn't matter, all files are referenced in options object above
return gulp.src('thisFileDoesNotExist.js', { read: false })
.pipe(sonar(options))
.on('error', console.log);
};
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/fc5e0ee6-287d-459f-9e95-fa1bc8af1b1e%40googlegroups.com.
collectCoverageFrom: [ '**/*.{js,jsx}', '!**/node_modules/**' ],
testRegex: '^.+Spec\\.(jsx|js)$',