Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 24 Next »

The resource viewer

When drilling down from project dashboard, the resource viewer is the ultimate place to view detailled information on a given resource like a java file or unit tests. The power of the tool comes from the fact that the resources can be viewed according to different axis of quality. On each of the axis a permalink is provided to allow to jump from an external tool or document directly into a resource.

Viewing source code

When drilling down into measures, you will eventually reach the file level and will be able to browse the source code.

At the top, 6 tabs representing 6 different views on the code source.

In the middle, a contextualized header depending on the selected tab

At the bottom, the code source contextualized, depending on the chosen tab.

The Sources tab

This tab shows the colorized source code.

The Code coverage tab

The code coverage tab shows the source code annotated with extra information and colors showing the code coverage.



In the second column, next to each line of code (except empty lines and comments) appear the number of times the unit tests have "hit" the line. If it is 0, the line will be highlighted in red, otherwise the number of hit appears in green.

The Violations tab

The violations tab shows the source code annotated with extra informations and colors showing the coding rules violations. By default, only the code immediately next to the violation is shown.



A drop down list enables to filter on a specific violation or on a specific priority.

The Duplications tab

The duplications tab shows every duplicated chunk of code within a class and the name of the other class it is duplicated with.



The Dependencies tab

The Dependencies tab shows all incoming and outgoing dependencies on the chosen file.



The LCOM4 tab

The LCOM4 tab shows blocks of resources within a class that have tight relationship. Having more that one block here probably means that the class is assuming more than one responsibility.



Viewing the unit tests results

When drilling down into unit tests measures (except the code coverage), you will eventually reach the unit test class level.

At the top, 2 tabs representing 2 different views on the unit tests classes.

In the middle, a contextualized header depending on the selected tab

At the bottom, the code source contextualized, depending on the chosen tab.

The Sources tab

This tab shows the plain source code of unit tests classes, as is.

The Tests tab

This tab shows the result of the unit tests belonging to the unit test class. In case the test failed or was in error, the reason for the error can be viewed.

  • No labels