Default utility tool to launch a Sonar analysis without any dependency on third party tool like Maven, Ant, ...
Questions tagged [sonar-runner]
905 questions
0
votes
1 answer
Coverage report of multi module project
I am having a issue with generating code coverage report and getting an analysis of unit tests covering the project code. I have used Sonar to get a report on project but the unit test coverage section do not show anything. I have done some research…

Amit Kumar
- 2,685
- 2
- 37
- 72
0
votes
1 answer
Multi-Modular Sonar Project with same projectBaseDir wrongly duplicates the unit test count
When I scan a multi-modular project for Sonar with the same projectBaseDir the unit test count is wrong. My groovy app has 80 unit tests, my java 0 and my javascript 0. Every time I scan my project, the unit test count ends up 240. If I take the…

Dave Brunkow
- 352
- 6
- 20
0
votes
0 answers
No unit test success value reported to sonar
I am using Jenkins with Sonar to perform a build of my Java EE application through an ANT script.
The build works fine and the unit test case run fine as well.
I am currently getting a unit test coverage % but the "Unit test sucess" shows as zero.…

Subbu
- 839
- 2
- 12
- 34
0
votes
1 answer
How do I resolve this duplicate resource error?
I have a nodejs project written in coffeescript which I use the sonar javascript plugin to analyse.
I have all my source in a folder called "src" and tests in a folder called "test".
The test files have the same names as the source files.
When I run…

pghalliday
- 301
- 2
- 7
0
votes
1 answer
the analysis result not being published with 4.1.1 using ANT Task
I have just upgraded to Sonar4.1.1 and the same project is not being published properly. I am not able to see the data on the dashboard. however when i tried to publish as a new project the project got created successfully with no data.
Logs are…
0
votes
1 answer
Sonar-runner not creating database entries
I am using sonar runner with Jenkins to analyse a PHP project. The analysis seems to work fine and all of the reports are created by sonar-runner, however, the data does not show up on the dashboard. …

jakobo
- 1
- 2
0
votes
1 answer
SONAR 4.1 : Cannot download from repository
Am new to SONAR.. and my task is to analyze a Maven project.
I followed all the steps as mentioned on the SONARQube website http://docs.codehaus.org/display/SONAR/Analyzing+with+Maven
everything! But when I try to run their sample example. Am…

swateek
- 6,735
- 8
- 34
- 48
0
votes
1 answer
Sonar-runner Exception Caused by: Unknown database status: FRESH_INSTALL
I'm running Sonarqube4.0 and PostgreSQL9.3 database and the sonarqube-runner2.3 on different servers.
Connectivity between Sonarqube and Postgresql database is fine as I can get to the console http://[sonar-host]:9000, login change password and do…

user3223014
- 1
- 4
0
votes
1 answer
Trying to run sonar-runner from shell script
I want to run sonar runner every night via a cronjob though nothing happens when I run this script:
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
cd path_to_repo
git checkout master
echo "on master"
git pull
echo…

Kim
- 977
- 1
- 8
- 15
0
votes
1 answer
fxcop execution failed with return code 515
I have installed sonar and sonar runner in my machine trying to analyze a dotnet mvc project in the sonar-runner.properties the content is :
# Required…

user1403505
- 895
- 2
- 19
- 42
0
votes
1 answer
How to use an include path property in sonar-project.properties for the execution of PHPUnit?
I'm working on a project with the Zend Framework and I need to use the path of the framework as an include path property for launch PHPUnit. It's ok for an execution on my work station.
Actually, the problem is for the execution of PHPUnit in…

fabienbranchel
- 494
- 1
- 6
- 21
0
votes
1 answer
Sonar plugin development: How to modify issue tracking or comparison algorithm
I am developing a sonar plugin that injects issues, found by other source code scanner, into sonar. Sonar has a built in algorithm that compares issues of a new snapshot with the issues from the previous snapshot and detects recurring issues. This…

Denis Krivitski
- 654
- 8
- 11
0
votes
1 answer
How to use Inclusions in SONAR 4.0?
I am new to Sonar and need help in using Sonar's inclusion/Exclusion options.
I have installed Sonar 4.0 and Sonar-Runner for running analysis on project.
Its a huge project with large number of classes. every time a new release comes, we hardly…

Ninja
- 53
- 9
0
votes
1 answer
Sonar-Runner cannot connect to Oracle EX
I executed
sonar-runner -e
but the message EXECUTION FAILURE is displayed.
Caused by:org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory Connection is broken: "java.net.ConnectException: Connection refused: connect:…
0
votes
1 answer
Sonar Ant Task - NoSuchMethodError
I am running sonar ant task within the project's build XML file. The project building is done from the Hudson job. But occurred with below exception:
[sonar:sonar] 17:57:00.994 WARN - [JOURNAL_FLUSHER] WARNING Journal flush operation took 3,655ms…

Zubair Ahmed
- 147
- 4
- 13