Remco;2493 wrote:When navigating to a failed test, there are two points of navigation that are of interest:
1. The entry point of the test
2. The deepest accessible point of failure on the failing test's exception call stack
I think it depends. The main question I'm asking myself is why would the test be red?
- If I just wrote the test I know why it's red and I'm already in the test, so it doesn't matter.
- If I just wrote the code that should have made the test green and it fails then I suspect I'm going to be interested in the deepest point.
- If I've just arrived at work in the morning, then I'll want to see the test again to know where I left off the day before
- If I accidentally broke something I'll probably want to look at the test first to understand the context, then I would be interested in the deepest point.
What other reasons might the test be red?
I asked two of my coworkers and they thought the deepest possible point would be of more interest. One of them suggested that the keyboard shortcut first take me to the test and then, if repeated, take me to the deepest possible point -- which seems quite sensible to me. I suppose repeated executions of the keyboard shortcut could navigate through all the failing tests in that same way (although that wasn't what I originally requested, it seems useful).
Thank you very much for your willingness to reach out to others and look for true utility in the feature.
--Kaleb