Issue
I am a blind screen reader user and have a problem with JUnit in Eclipse.
The results of tests passing or failing is represented as far as I understand visually, by highlighting the test green or red in the JUnit view. Using my screen reader I am unable to determine what the result is, so I was thinking that I could review the JUnit results if they were redirected to the console. How could this be done? Alternatively, do any other screen reader users here use Eclipse and/or JUnit and if so how do you review the results?
Solution
So, @Little-Santi 's answer provides the way to run JUnit tests and have the results printed in the console, but I found I didnt have to do this in order for JUnit tests to be screen reader accessible.
A suggestion was provided by @Little-Santi in the comments to try using the checkbox for showing only fails/errors. This does the trick for me as a screen reader user, because I don't really care about the tests that pass and want to examine the ones that dont. So, for any screen reader users that might stumble here, here is a brief guide for reviewing JUnit test results as a screen reader user:
Run your JUnit tests in the standard Eclipse way. Your focus should be moved to the tree view where you can go through the various Junit test results. Shift+tabbing allows you to review the number of tests passing, failing, and errors. Shift+tabbing further navigates you to a checkbox for only showing fails/errors in the tree view. tabbing forward from the tree view navigates to a list that contains the stack trace for the test selected in the tree view.
Happy testing!
Answered By - s.kacer
Answer Checked By - David Marino (JavaFixing Volunteer)