A resource group is a collection of resources (i.e., files and/or folders) defined by a set of one or more Ant file patterns. Resource groups enable more granular views of the data associated with a filter. After associating a resource group with a filter, the data presented in all widgets, reports, and explorer views for static analysis violations, metrics results, and coverage will be narrowed according to the defined pattern. Unit test results are not affected by resource groups. The following widgets and reports that present data according to resource groups are also available in DTP:
- Resource Groups - Top 5 Table (static analysis)
- Resource Groups - Top 10 Tree Map (static analysis)
- Resource Groups - Trend (static analysis)
- Resource Groups - Top 10 Tree Map (metrics)
- Resource Groups - Top 5 Table (metrics)
- Resource Groups - Top 10 Tree Map (coverage)
- Resource Groups - Top 5 Table (coverage)
- Resource Groups Report
See Adding Resource Groups to Projects for instructions on associating the resource groups you created for the project with filters.
- Choose Report Center Settings from the settings drop-down menu and click Filters in the Administration sidebar.
- Create a new filter or click on an existing filter.
- Click Add Resource Group in the Resource Group section.
- Click the add button (+) to associate a resource group with the filter and click Confirm. If resource groups have not been created for the project, the overlay will be empty. See Adding Resource Groups to Projects for information on how to create resource groups.
- Click the delete button (x) to remove the resource group from the filter.
You can click on the resource group name add, remove, or modify resource group patterns in an overlay (see Adding Resource Groups to Projects for additional information).
All Instances of the Resource Group Will Be Modified
If you make changes to a resource group, other filters that use the same resource group will be affected.
Changes are automatically saved.
The performance of DTP API when resource groups are used depends on the file patterns in the resource groups. Performance is most heavily influenced by how the database engine matches the pattern of the string specified. More complex file patterns are slower because they require more complex algorithms for matching strings. From fastest to slowest, the three string matching algorithms: String equality ("=" in SQL) SQL Regular expressions We have observed that string equality and LIKE can be up to ten times faster than regular expressions. Pattern Description Examples String equality ( Fastest This pattern contains no wildcards (**, *, or ?). com.parasoft.foo/src/main/com/parasoft/foo/Alpha1.java Bar.java SQL Fast This pattern ends with a com.parasoft.foo/** com.parasoft.foo/ SQL regular expressions Slowest This pattern uses any other use of wildcards. com.parasoft.foo/*/.java com.parasoft.foo/**/Alpha1.java com.parasoft.foo/src/main/com/parasoft/foo/*.java com.parasoft.foo/src/*/com/parasoft/foo/Alpha1.java com.parasoft.foo/src/main/com/parasoft/foo/Alpha?.java */.javaAbout Resource Group Performance
LIKE
operatorExample File Patterns
=
operator in SQL)LIKE
/**
or /
.