Getting Your Custom JUnit TestCase Ignored by Eclipse

One issue I’ve struggled with lately is a small problem in eclipse caused by a custom TestCase class I created that extends TestCase that has special assertions. When I right click on my unit test page and run as junit test to run all my unit tests, I always get red bar and it complains about my custom TestCase class because it has no tests in it.

Anyhow, it seems I have finally found the solution! All I had to do was make my special TestCase abstract and eclipse ignores it. Now, after months of seeing red and being acquainted with “good red bar” and “bad red bar”, I can now once again experience the joy of seeing green. ;)

You can leave a response, or trackback from your own site.

Facebook comments:

Leave a Reply

Subscribe to RSS Feed Follow me on Twitter!