Sort results

Issue #158 closed
Henrique Gottardi Werlang created an issue

One suggestion I have is to sort the test result alphabetically, leaving only the last level in scope order.

Comments (7)

  1. Stefan Glienke repo owner

    I don’t quite understand - do you want to have

    a) the marked entries to be sorted and the not marked to be in order as they got executed and reported

    or

    b) the marked entries to be left as they got executed and reported and the not marked ones to be sorted

  2. Henrique Gottardi Werlang reporter

    the marked entries to be sorted and the not marked to be in order as they got executed and reported

  3. Stefan Glienke repo owner

    What’s the point of that if I may ask?

    I am quite hesitant to change the sorting of the tree to some non consistent behavior. Especially as such sorting would also interfer with partially executing tests.

  4. Henrique Gottardi Werlang reporter

    I have many tests in my project, and when I run, they get in random positions, making it difficult to find a unit by name. If I click the bar to sort the names, it works, but the test itself is out of position relative to the scope.

    Generally, what I need to do is find a specific unit and implement new tests, and I need to go directly to the last test implemented.

    Sorting can be done after tests are run, not during execution.

  5. Stefan Glienke repo owner

    I still don’t understand - there are no random positions.

    Tests get reported as they are being executed. That order is depending on the test framework being used and the order tests are implemented and registered to the framework or discovered by it.

    In the TestInsight window inside the IDE you click on the header and it sorts the tests alphabetically ascending or descending.

    Assuming that you know that I still don’t understand why you would want part of that not to be sorted alphabetically

  6. Henrique Gottardi Werlang reporter

    I changed the DUnitX implementation and ordered the discovery of the tests, and everything works as expected now. Thanks for the reply!

  7. Log in to comment