Book Image

Mastering Unit Testing Using Mockito and JUnit

By : Sujoy Acharya
Book Image

Mastering Unit Testing Using Mockito and JUnit

By: Sujoy Acharya

Overview of this book

Table of Contents (17 chapters)
Mastering Unit Testing Using Mockito and JUnit
About the Author
About the Reviewers

Monitoring code quality with SonarQube

SonarQube is a web-based open source continuous quality assessment dashboard. It comes with a GNU General Public License and supports cross-platform, so it can be installed on many popular operating systems. SonarQube is developed in Java. As of March 2014, the latest version is 4.1.2.

SonarQube exhibits the following features:

  • It is a web-based code quality dashboard that can be accessed from anywhere.

  • It supports numerous languages. The languages and coding platforms supported in Version 4.1.2 are ABAP, Android, C/C++, C#, COBOL, Erlang, Flex/ActionScript, Groovy, Java, JavaScript, Natural, PHP, PL/I, PL/SQL, Python, VB.NET, Visual Basic 6, Web (analysis of HTML included in pages on HTML, JSP, JSF, Ruby, PHP, and so on), and XML.

  • It offers the following metrics:

    • Bugs and potential bugs

    • Breach in coding standards

    • Duplications

    • Lack of unit tests

    • Bad distribution of complexities

    • Spaghetti design

    • Not enough or too many comments

  • It records history in a database and...