...
- Identify or create a Test Configuration with your preferred BugDetective standard analysis settings.
- For a description of preconfigured Test Configurations, see Built-in Test Configurations.
- For general procedures related to configuring and sharing Test Configurations, see the Configuring Test Configurations and Rules for Policies. For details on C++test-specific BugDetective options, see Static Tab Settings: Defining How Static Analysis is Performed.
- Start the test using the preferred Test Configuration.
- For details on testing from the GUI, see Testing from the GUI.
- For details on testing from the command line, see Testing from the Command Line Interface.
- Review and respond to the results.
- For details, see Reviewing BugDetective Static Analysis Results.
- (Optional) Fine-tune BugDetective settings as needed.
- For details, see Customizing BugDetective Static Analysis.
...
For tests run from the command line interface, rule violations are reported in the Static Analysis section of the report. If results were sent to Team Server, results can be imported into the GUI as described in thein Importing Results into the UI. They will then be available in the Fix Static Analysis Violations category of the Quality Tasks view.
...
- In the Resource tab, click Add and define the name of the new resource. This name will be used to report violations associated with this resource.
- Disable the Do not report violations at application termination option.
- Click Edit to specify how this resource is manipulated.
- Define
openMyResource
as an allocator as follows:- Fully qualified type name or namespace: empty
- + definitions in subclasses: unchecked
- '"this" object is a resource: unchecked
- Returns a resource object: unchecked
- Return value constraint on error: ==-1
- Numbers of the parameters representing resources: 1
- Specify the deallocator as follows:
- Fully qualified type name or namespace: empty
- Method name: closeMyResource
- + definitions in subclasses: unchecked
- "this" object is a resource: unchecked
- Numbers of the parameters representing resources: 1
onfiguring Test Configurations and Rules for Pol