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 18 Next »

The resource viewer

The resource viewer is a tool that enables to view source code and unit tests. The power of the tool comes from the fact that the resources can be viewed with 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 class level and will be able to browse the source code.

At the top, 4 tabs representing 4 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 plain source code as is.

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.



In the second column, next to each line of code that violates at least one rule, the number of violation appears. Below the line will appear the reason of the violation, in red if the rule was mandatory, in yellow if the rule was optional.

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.



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