Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Recommendations for test improvements are displayed in the Recommendations view after tests are executed. By default, all recommendations generated during the run are displayed, but you can filter out specific recommendations by selecting a category from the drop-down menu at the top of the Recommendations view:

Image AddedImage Removed

Using Action Links

...

  • Go to - Highlights the code associated with the recommendation in the editor.
  • Highlight - Highlights the issue in the execution flow displayed in the left column.

Image RemovedImage Added

Recommendations can also include:

  • the Learn more... link which opens a page with details about individual recommendations,
  • the Track [method_name] action link which detects values that may need to be asserted; see Tracking Object Changes and Creating Assertions for more information,
  • action links that automatically update your test code (for example, Uncomment removes specific comment markers in test templates generated by UTA, and Remove Assertion deletes the line with an unnecessary assertion).
Info
iconfalse
titleEnsure that recommendations are up to date before you use the action links

UTA displays recommendations for test code that was analyzed when the tests are run. If you change your code after test execution, recommendations may not be up to date, and the action links may not be applied appropriately.

Working with Recommendations

This section shows several examples of Unit Test Assistant recommendations and how they can be used to improve the quality of your test.

...