Sonarqube Javascript Coverage doesn't show source files -


i tried display coverage javascript project sonarqube. value of code coverage correct can't see source files.

screenshot

currently have following project structure:

angular-playground +- app |   +- scripts |   |   +- app.js +- build |   +- coverage |   |   +- lcov.info¨ 

this sonar-project.properties-file:

# metadata sonar.projectkey=angular-playground sonar.projectname=angular-playground sonar.projectversion=1.0.0  # source folders sonar.language=js sonar.sourceencoding=utf-8 sonar.sources=app sonar.tests=test  # coverage reporting sonar.javascript.lcov.reportpath=build/coverage/lcov.info sonar.surefire.reportspath=build/reports/ sonar.dynamicanalysis=reusereports 

this lcov.info-file:

tn: sf:app/scripts/app.js fnf:0 fnh:0 da:11,1 lf:1 lh:1 brf:0 brh:0 end_of_record 

and debug log:

sonarqube runner 2.4 java 1.8.0_40 oracle corporation (64-bit) windows 8.1 6.3 amd64 info: error stacktraces turned on. info: default locale: "de_ch", source code encoding: "utf-8" info: sonarqube server 5.1.1 21:43:29.687 info  - load global repositories 21:43:29.734 debug - download: http://<domain>/batch/global (no proxy) 21:43:30.273 info  - load global repositories (done) | time=586ms 21:43:30.289 info  - server id: 20150623160836 21:43:30.320 info  - install plugins 21:43:30.320 debug - download index of plugins 21:43:30.320 debug - download: http://<domain>/deploy/plugins/index.txt (no proxy) 21:43:30.945 debug - loaded 3329 properties l10n bundles 21:43:30.945 info  - install jdbc driver 21:43:30.945 debug - download index of jdbc-driver 21:43:30.945 debug - download: http://<domain>/deploy/jdbc-driver.txt (no proxy) 21:43:31.070 info  - create jdbc datasource jdbc:postgresql://<domain>/sonarqube?useunicode=true&amp;characterencoding=utf8 21:43:32.750 debug - testing jdbc connection 21:43:35.255 debug - download: http://<domain>/api/server (no proxy) 21:43:35.529 info  - initializing hibernate 21:43:35.529 debug - hibernate.generate_statistics: false 21:43:35.529 debug - hibernate.dialect: org.sonar.core.persistence.dialect.postgresql$postgresqlwithdecimaldialect 21:43:35.529 debug - hibernate.connection.provider_class: org.sonar.jpa.session.customhibernateconnectionprovider 21:43:39.321 info  - load project repositories 21:43:39.321 debug - download: http://<domain>/batch/project?key=angular-playground&amp;preview=false (no proxy) 21:43:41.045 info  - load project repositories (done) | time=1724ms 21:43:41.045 info  - load project settings 21:43:41.730 info  - load technical debt model 21:43:41.871 debug - load technical debt model (done) | time=141ms 21:43:41.885 info  - apply project exclusions 21:43:43.195 warn  - 'sonar.dynamicanalysis' deprecated since version 4.3 , should no longer used. 21:43:43.242 debug - acquire semaphore on project : org.sonar.api.resources.project@f94fc29[id=<null>,key=angular-playground,qualifier=trk], key batch-angular-playground 21:43:43.383 info  - -------------  scan angular-playground 21:43:43.398 info  - load module settings 21:43:43.892 debug - available languages: 21:43:43.894 debug -   * java => "java" 21:43:43.894 debug -   * javascript => "js" 21:43:44.161 info  - language forced js 21:43:44.177 info  - load rules 21:43:53.327 debug - load rules (done) | time=9150ms 21:43:53.403 debug - updating semaphore batch-angular-playground 21:43:53.533 debug - code colorizer, supported languages:  21:43:53.557 debug - initializers :  21:43:53.557 info  - base dir: c:\<cwd>\angular-playground 21:43:53.558 info  - working dir: c:\<cwd>\angular-playground\.sonar 21:43:53.560 info  - source paths: app 21:43:53.561 info  - test paths: test 21:43:53.562 info  - source encoding: utf-8, default locale: de_ch 21:43:53.563 info  - index files 21:43:53.573 debug - declared extensions of language org.sonar.batch.repository.language.language@566140d4 converted sonar.lang.patterns.java : **/*.java,**/*.jav 21:43:53.573 debug - declared extensions of language org.sonar.batch.repository.language.language@60a8d8d6 converted sonar.lang.patterns.js : **/*.js 21:43:53.601 debug - language of file 'app/scripts/app.js' detected 'js' 21:43:53.614 debug - language of file 'app/scripts/controllers/main.js' detected 'js' 21:43:53.635 debug - language of file 'test/karma.ci.conf.js' detected 'js' 21:43:53.642 debug - language of file 'test/spec/controllers/main.js' detected 'js' 21:43:53.642 debug - language of file 'test/karma.conf.js' detected 'js' 21:43:53.658 info  - 5 files indexed 21:43:56.516 info  - quality profile js: sonar way 21:43:57.456 info  - jira issues sensor not run parameters missing. 21:43:57.476 debug - sensors : lines sensor (wrapped) -> qprofilesensor -> initialopenissuessensor -> projectlinkssensor -> versioneventssensor -> javascriptsquidsensor -> scm sensor (wrapped) -> org.sonar.plugins.javascript.lcov.utcoveragesensor@b39a3bf -> org.sonar.plugins.javascript.lcov.itcoveragesensor@4da6546a -> cpd sensor (wrapped) 21:43:57.476 info  - sensor lines sensor (wrapped) 21:43:57.533 info  - sensor lines sensor (wrapped) (done) | time=57ms 21:43:57.534 info  - sensor qprofilesensor 21:43:57.549 info  - sensor qprofilesensor (done) | time=15ms 21:43:57.550 info  - sensor initialopenissuessensor 21:43:57.655 info  - sensor initialopenissuessensor (done) | time=105ms 21:43:57.655 info  - sensor projectlinkssensor 21:43:57.733 info  - sensor projectlinkssensor (done) | time=78ms 21:43:57.733 info  - sensor versioneventssensor 21:43:57.920 info  - sensor versioneventssensor (done) | time=187ms 21:43:57.921 info  - sensor javascriptsquidsensor 21:43:58.952 info  - 2 source files analyzed 21:43:59.338 info  - 2/2 source files analyzed 21:43:59.370 debug - metric lines internal metric computed sonarqube. provided value ignored. 21:43:59.385 debug - metric lines internal metric computed sonarqube. provided value ignored. 21:43:59.448 info  - sensor javascriptsquidsensor (done) | time=1527ms 21:43:59.448 info  - sensor scm sensor (wrapped) 21:43:59.479 info  - sensor scm sensor (wrapped) (done) | time=31ms 21:43:59.479 info  - sensor org.sonar.plugins.javascript.lcov.utcoveragesensor@b39a3bf 21:43:59.479 info  - analysing c:\<cwd>\angular-playground\build\coverage\lcov.info 21:43:59.495 info  - sensor org.sonar.plugins.javascript.lcov.utcoveragesensor@b39a3bf (done) | time=16ms 21:43:59.495 info  - sensor org.sonar.plugins.javascript.lcov.itcoveragesensor@4da6546a 21:43:59.495 info  - sensor org.sonar.plugins.javascript.lcov.itcoveragesensor@4da6546a (done) | time=0ms 21:43:59.495 info  - sensor cpd sensor (wrapped) 21:43:59.495 info  - defaultcpdengine used js 21:43:59.495 info  - cross-project analysis disabled 21:43:59.510 debug - populating index [modulekey=angular-playground, relative=app/scripts/app.js, basedir=c:\<cwd>\angular-playground] 21:43:59.526 debug - populating index [modulekey=angular-playground, relative=app/scripts/controllers/main.js, basedir=c:\<cwd>\angular-playground] 21:43:59.526 debug - detection of duplications [modulekey=angular-playground, relative=app/scripts/app.js, basedir=c:\<cwd>\angular-playground] 21:43:59.542 debug - detection of duplications [modulekey=angular-playground, relative=app/scripts/controllers/main.js, basedir=c:\<cwd>\angular-playground] 21:43:59.542 info  - sensor cpd sensor (wrapped) (done) | time=47ms 21:43:59.542 info  - no quality gate configured. 21:44:00.019 info  - compare previous analysis (2015-06-29) 21:44:00.066 info  - compare on 30 days (2015-05-30, analysis of fri jun 26 11:04:54 cest 2015) 21:44:00.636 info  - execute decorators... 21:44:00.638 debug - decorators: manualmeasuredecorator -> org.sonar.batch.issue.tracking.issuetrackingdecorator@39e05056 -> qprofileeventsdecorator -> org.sonar.batch.design.projectdsmdecorator@5eef49f2 -> org.sonar.batch.design.subprojectdsmdecorator@1376ea26 -> org.sonar.batch.design.directorydsmdecorator@28af6afe -> filetangleindexdecorator -> sumduplicationsdecorator -> unittestdecorator -> org.sonar.plugins.core.security.applyprojectrolesdecorator@3b5c7033 -> org.sonar.plugins.core.sensors.directoriesdecorator@4183a26f -> org.sonar.plugins.core.sensors.filesdecorator@5bebff4b -> org.sonar.plugins.core.timemachine.timemachineconfigurationpersister@4ba148fb -> org.sonar.plugins.core.timemachine.newcoveragefileanalyzer@5811502e -> org.sonar.plugins.core.timemachine.newitcoveragefileanalyzer@6ed80c52 -> org.sonar.plugins.core.timemachine.newoverallcoveragefileanalyzer@32144b3c -> org.sonar.plugins.core.timemachine.newcoverageaggregator@3601fb92 -> f(lines) -> f(generated_lines) -> f(ncloc) -> f(generated_ncloc) -> f(classes) -> f(packages) -> f(functions) -> f(accessors) -> f(statements) -> f(public_api) -> f(comment_lines) -> f(public_undocumented_api) -> f(commented_out_code_lines) -> f(complexity) -> f(complexity_in_classes) -> f(complexity_in_functions) -> f(class_complexity_distribution) -> f(function_complexity_distribution) -> f(file_complexity_distribution) -> f(lines_to_cover) -> f(uncovered_lines) -> f(conditions_to_cover) -> f(uncovered_conditions) -> f(it_lines_to_cover) -> f(it_uncovered_lines) -> f(it_conditions_to_cover) -> f(it_uncovered_conditions) -> f(overall_lines_to_cover) -> f(overall_uncovered_lines) -> f(overall_conditions_to_cover) -> f(overall_uncovered_conditions) -> f(rfc) -> f(rfc_distribution) -> f(lcom4_distribution) -> f(package_cycles) -> f(package_tangles) -> f(package_feedback_edges) -> f(package_edges_weight) -> f(new_lines_to_cover) -> f(new_uncovered_lines) -> f(new_conditions_to_cover) -> f(new_uncovered_conditions) -> f(new_it_lines_to_cover) -> f(new_it_uncovered_lines) -> f(new_it_conditions_to_cover) -> f(new_it_uncovered_conditions) -> f(new_overall_lines_to_cover) -> f(new_overall_uncovered_lines) -> f(new_overall_conditions_to_cover) -> f(new_overall_uncovered_conditions) -> org.sonar.batch.language.languagedistributiondecorator@454009a0 -> org.sonar.batch.debt.debtdecorator@483740d5 -> org.sonar.batch.debt.newdebtdecorator@24e25991 -> directorytangleindexdecorator -> org.sonar.batch.cpd.decorators.duplicationdensitydecorator@4d763525 -> countunresolvedissuesdecorator -> countfalsepositivesdecorator -> commentdensitydecorator -> f(file_complexity) -> f(class_complexity) -> f(function_complexity) -> org.sonar.plugins.core.sensors.linecoveragedecorator@78751d07 -> org.sonar.plugins.core.sensors.coveragedecorator@2d34798d -> org.sonar.plugins.core.sensors.branchcoveragedecorator@53f92771 -> org.sonar.plugins.core.sensors.itlinecoveragedecorator@6160714c -> org.sonar.plugins.core.sensors.itcoveragedecorator@31add542 -> org.sonar.plugins.core.sensors.itbranchcoveragedecorator@3f5b2aeb -> org.sonar.plugins.core.sensors.overalllinecoveragedecorator@258350de -> org.sonar.plugins.core.sensors.overallcoveragedecorator@478bbf33 -> org.sonar.plugins.core.sensors.overallbranchcoveragedecorator@18537545 -> org.sonar.batch.debt.sqaleratingdecorator@79f40cc5 -> org.sonar.plugins.core.timemachine.tendencydecorator@4cf4fb3b -> variationdecorator 21:44:03.511 debug - updating semaphore batch-angular-playground 21:44:04.137 debug - decorator time:     manualmeasuredecorator: 289ms     org.sonar.batch.issue.tracking.issuetrackingdecorator@39e05056: 13ms     qprofileeventsdecorator: 173ms     org.sonar.batch.design.projectdsmdecorator@5eef49f2: 1ms     org.sonar.batch.design.subprojectdsmdecorator@1376ea26: 1ms     org.sonar.batch.design.directorydsmdecorator@28af6afe: 16ms     filetangleindexdecorator: 9ms     sumduplicationsdecorator: 1ms     unittestdecorator: 1ms     org.sonar.plugins.core.security.applyprojectrolesdecorator@3b5c7033: 127ms     org.sonar.plugins.core.sensors.directoriesdecorator@4183a26f: 0ms     org.sonar.plugins.core.sensors.filesdecorator@5bebff4b: 1ms     org.sonar.plugins.core.timemachine.timemachineconfigurationpersister@4ba148fb: 606ms     org.sonar.plugins.core.timemachine.newcoveragefileanalyzer@5811502e: 34ms     org.sonar.plugins.core.timemachine.newitcoveragefileanalyzer@6ed80c52: 0ms     org.sonar.plugins.core.timemachine.newoverallcoveragefileanalyzer@32144b3c: 0ms     org.sonar.plugins.core.timemachine.newcoverageaggregator@3601fb92: 1ms     f(lines): 1ms     f(generated_lines): 2ms     f(ncloc): 0ms     f(generated_ncloc): 1ms     f(classes): 0ms     f(packages): 0ms     f(functions): 0ms     f(accessors): 0ms     f(statements): 0ms     f(public_api): 0ms     f(comment_lines): 0ms     f(public_undocumented_api): 0ms     f(commented_out_code_lines): 0ms     f(complexity): 0ms     f(complexity_in_classes): 0ms     f(complexity_in_functions): 0ms     f(class_complexity_distribution): 0ms     f(function_complexity_distribution): 1ms     f(file_complexity_distribution): 1ms     f(lines_to_cover): 1ms     f(uncovered_lines): 0ms     f(conditions_to_cover): 0ms     f(uncovered_conditions): 0ms     f(it_lines_to_cover): 1ms     f(it_uncovered_lines): 0ms     f(it_conditions_to_cover): 0ms     f(it_uncovered_conditions): 0ms     f(overall_lines_to_cover): 0ms     f(overall_uncovered_lines): 0ms     f(overall_conditions_to_cover): 0ms     f(overall_uncovered_conditions): 0ms     f(rfc): 0ms     f(rfc_distribution): 0ms     f(lcom4_distribution): 0ms     f(package_cycles): 0ms     f(package_tangles): 0ms     f(package_feedback_edges): 0ms     f(package_edges_weight): 0ms     f(new_lines_to_cover): 0ms     f(new_uncovered_lines): 0ms     f(new_conditions_to_cover): 0ms     f(new_uncovered_conditions): 0ms     f(new_it_lines_to_cover): 0ms     f(new_it_uncovered_lines): 0ms     f(new_it_conditions_to_cover): 0ms     f(new_it_uncovered_conditions): 0ms     f(new_overall_lines_to_cover): 0ms     f(new_overall_uncovered_lines): 0ms     f(new_overall_conditions_to_cover): 1ms     f(new_overall_uncovered_conditions): 0ms     org.sonar.batch.language.languagedistributiondecorator@454009a0: 2ms     org.sonar.batch.debt.debtdecorator@483740d5: 11ms     org.sonar.batch.debt.newdebtdecorator@24e25991: 5ms     directorytangleindexdecorator: 0ms     org.sonar.batch.cpd.decorators.duplicationdensitydecorator@4d763525: 0ms     countunresolvedissuesdecorator: 55ms     countfalsepositivesdecorator: 2ms     commentdensitydecorator: 0ms     f(file_complexity): 0ms     f(class_complexity): 0ms     f(function_complexity): 0ms     org.sonar.plugins.core.sensors.linecoveragedecorator@78751d07: 8ms     org.sonar.plugins.core.sensors.coveragedecorator@2d34798d: 0ms     org.sonar.plugins.core.sensors.branchcoveragedecorator@53f92771: 1ms     org.sonar.plugins.core.sensors.itlinecoveragedecorator@6160714c: 0ms     org.sonar.plugins.core.sensors.itcoveragedecorator@31add542: 0ms     org.sonar.plugins.core.sensors.itbranchcoveragedecorator@3f5b2aeb: 0ms     org.sonar.plugins.core.sensors.overalllinecoveragedecorator@258350de: 0ms     org.sonar.plugins.core.sensors.overallcoveragedecorator@478bbf33: 1ms     org.sonar.plugins.core.sensors.overallbranchcoveragedecorator@18537545: 0ms     org.sonar.batch.debt.sqaleratingdecorator@79f40cc5: 5ms     org.sonar.plugins.core.timemachine.tendencydecorator@4cf4fb3b: 1032ms     variationdecorator: 941ms  21:44:04.138 info  - store results in database 21:44:04.140 debug - execute org.sonar.batch.phases.graphpersister 21:44:04.165 debug - execute org.sonar.batch.index.sourcepersister 21:44:04.494 debug - execute org.sonar.batch.index.resourcepersister 21:44:04.494 debug - execute org.sonar.batch.index.measurepersister 21:44:06.450 debug - execute org.sonar.batch.index.duplicationpersister 21:44:06.600 info  - analysis reports generated in 135ms, dir size=767 bytes 21:44:06.678 info  - analysis reports compressed in 63ms, zip size=3 kb 21:44:06.678 debug - publish results 21:44:06.945 info  - analysis reports sent server in 266ms 21:44:06.945 info  - analysis successful, can browse http://<domain>/dashboard/index/angular-playground 21:44:06.945 info  - note able access updated dashboard once server has processed submitted analysis report. 21:44:06.947 debug - post-jobs :  21:44:06.948 debug - release semaphore on project : org.sonar.api.resources.project@f94fc29[id=75,key=angular-playground,qualifier=trk], key batch-angular-playground info: ------------------------------------------------------------------------ info: execution success info: ------------------------------------------------------------------------ total time: 39.758s final memory: 20m/469m info: ------------------------------------------------------------------------ 

when path source file incorrect ./app/scripts/app.js see source file not correct coverage value. use sonar 5.1.1 , javascript plugin 2.6.

is bug javascript plugin or configuration fault?

your configuration ok. problem in ui: lists files uncovered lines. don't have them - nothing listed. still can browse files through other metrics (files, lines) or "components" page.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -