AutoTest tests tree fix #64
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Short description:
Classes under test (node "covers") in the tests tree were displayed with the cluster hierarchy of the test classes instead of the cluster hierarchy of the classes under test. This is now fixed.
Long description:
This is a fix for my problem report at: https://support.eiffel.com/report_detail/19912
The change that leads to the wrong display of the classes under test in the tree was done with commit 36028ae in class ETEST_CLASS_SYNCHRONIZER, feature add_class_path.
This change leads to the following values of a_tag computed in add_class_path for the two classes TEST_BANK_ACCOUNT and BANK_ACCOUNT (see https://www.eiffel.org/doc/eiffelstudio/The_AutoTest_Interface):
My fix changes the computation of a_tag only for tags starting with "covers/" (classes under test). In this case the class object is retrieved by the given class name (instead of using the test class object) without the group/cluster. l_group is not needed here because the class under test is usually not in the test class cluster.
Now these are the values of a_tag:
Please review and let me know what you think.