Dealing with Failure
You previously learned to click on the little JUnit run icon next to the class declaration to execute all its tests. But you’re going to be running tests quite often—potentially hundreds of times per day, and mousing about is a much slower, labor-intensive process. It behooves you to be more efficient. Repetitive stress injuries are real and unpleasant.
Any good IDE will show you the appropriate keyboard shortcut when you hover over a button. Hovering over the JUnit “run” button reveals Ctrl-Shift-R as the appropriate shortcut in my IDE. Hover over yours. Write down the shortcut it provides. Press it and run your tests. Press it again. And again. And remember it. And from here on out, for the thousands of times you will ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access