Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#65 - Alternative hierarchical view #123

Merged
merged 55 commits into from
Jan 3, 2021

Conversation

PhilippSalvisberg
Copy link
Member

Added an alternative tree-table view to the Realtime Reporter (utPLSQL Test Runner). It closes #65. The following areas are affected of this PR (from a user perspective)

  • Realtime Reporter

    • The new tree-table view is default. It shows the all suites as a hierarchy. Tests are always leafs. Suites with the same parent identifier are collapsed to a single node, even if the suite code is executed more than once (e.g. when starting utPLSQL with a list of tests). In such a case the suite specific data is aggregated.
    • The suite description is shown only for contexts and tests (if available). For other suites always the name is shown. The reason is that the description is not aggregated (only the last description of a suite is shown). This would lead to a very confusing tree representation.
    • The warning and info indicator is now shown before the execution time. For the tree-table and table view. This is consistent. The order of the columns is not configurable.
    • In the tree-table view sorting rows is not supported. Beside that all features work as in the table view. The settings are applied always on both views (e.g. filtering, show/hide columns).
    • Suitepath optimization. This means when you select multiple items (suites and tests) it is reduced to an optimal list to avoid that test are executed multiple times.
    • New package_folder button on the toolbar. Switch between hierarchical view (shows suites and tests) and tabular view (shows tests only). You can press the button anytime, even during runs. The selected row is preserved when just a single suite/test is selected (for suites the first child is considered).
    • New PopUp Menu entry Show suites (hierarchical view of tests)? in the test overview section. Same action as via toolbar.
  • Preferences

    • New preference Show suites (hierarchical view of tests)? in the Realtime Reporter section.
    • The tree-table view is now the default.
  • Icons

    • The tree-table uses the existing icons plus the following new icons in the tree component to represent group of suites, suites, contexts and tests. These icons are visible between the pre-run and the pre-test event. The icon will be replaced with one of the status icons.
    • Updated icons for status, success, failure, error, disabled, warning and info. These icons share a common flat design and look nicer. statussuccessfailureerrordisabledwarninginfo
  • Bug fixes

    • Hyperlinks in warning and info fields were activated via any mouse event. Now you need to click on a hyperlink to activate it (it worked correctly for failures and errrors).
    • Flickering with multiple, parallel runs. Implemented a logic that ensures that the runner does not switch back and forth between runs.

This allows the runner panel to use the item instead of the run's current item.
Furthermore the panel updates the a test/suite only if an item is passed.
This improves the performance of the runner.
Previously only tests were processed. That was enough for a representation
in a simple table. To show the run result in a tree also suites need to be
processed.
Old logic would have thrown an NullPointerException.
Old logic would have thrown an NullPointerException.
Columns in table and tree-table are shown in the same order.
This means the warning and info indicators are shown now before
the execution time column.

All features that were available for the table-view are also available
in the tree-table-view with one exception: It is not possible to sort a
tree-table. Therefore sorting is disabled for the tree-table-view.
Beside that, all  features that are available in the context-menu
work. Selection multiple nodes is supported as well.
@PhilippSalvisberg PhilippSalvisberg merged commit 32ef3e1 into main Jan 3, 2021
@PhilippSalvisberg PhilippSalvisberg deleted the feature/issue-65-hierarchical-view branch January 3, 2021 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alternative hierarchical view
1 participant