Java Code Metrics Report
This is the dream for Managers to have code report for each project. In Java we have tools like check style, PMD, CPD, Cobertura Test Coverage, ..etc. We need to have tool which can track all this results on day to day basis and helps to track down the progress in project. To achieve this we have following tools.
XRadar – http://xradar.sourceforge.net/
Maven Dashboard Plug-in – http://mojo.codehaus.org/dashboard-maven-plugin/
QA Lab – http://qalab.sourceforge.net/
Sonar – http://sonar.codehaus.org/
Hacky Stat – http://code.google.com/p/hackystat/
- It supports branches and multiple projects
- Nice time lines
- Tabular and graphical views
- Separate database to track huge past history.
JcReport – http://www.jcoderz.org/fawkez/wiki/JcReport
(Only with Ant…no maven support)
The best tool worked out for me is Sonar.
Here is the Sonar demo site http://nemo.sonar.codehaus.org
Problems faced in Sonar setup as on Nov-04-2008
Problem: sonar-1.4.3 is having issues and there is ticket http://jira.codehaus.org/browse/SONAR-413
Solution: Sonar 1.4.2 is working fine.
Problem: MySQL database in Windows with McAfee is having problem while using Windows/Temp folders
Embedded error: org.hibernate.exception.GenericJDBCException: could not get table metadata: rules_categories
Can’t create/write to file ‘C:WINDOWSTEMP#sql_12a8_0.MYI’ (Errcode: 13)
my.ini file in mysql folder
#Added to escape from McAfee