Context Menu Options
Right click on the test failure that has currently been created in the
Problems View. You'll see some standard options, including "Go To",
"Copy", and "Properties", as well as four options specific to
continuous testing:
- Rerun Tests: This will rerun all tests in the suite that
generated the selected test failure. The effect is the same as
introducing a trivial change to your project code, like slightly
rearranging the whitespace. This can be useful if you think that
Eclipse has missed an event that could affect your tests, such as
relevant resources changing on-disk.
Try selecting Rerun now. Notice
that the "T" icon at the left of the Problems View briefly changes from
red (
) to gray (
), then back to red. If it's too quick
to see, add the following line to the beginning of getTopN:
Thread.sleep(1000);
The gray means that continuous testing is currently planning to
rerun the indicated test, and doesn't yet know the result. If the
rerun test fails, the icon is switched back to red. If the rerun
test passes, the problem is deleted.
- View trace: This will open the Continuous Testing results
view to show the stack trace of the failed assertion or exception that
caused the selected test to fail. You can double-click
on elements of the stack trace to visit the source code location
indicated.
- Delete Marker: If continuous testing has failed to remove a
test failure marker, for whatever reason, that it should have, you can
use this option to remove it. However, if the test fails the next
time the project is changed, the marker will be re-created.
- Delete All: Delete all test failure markers, for now. As
tests fail in the future, some of the markers may be recreated.