Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 116961

Summary: [JUnit] Running package tests also runs superclasses from other packages
Product: [Eclipse Project] JDT Reporter: Eduardo Rocha <eduardorochabr>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Eduardo Rocha CLA 2005-11-17 19:29:43 EST
[3.1.1] and [3.2M3] ([3.1.0] was OK)

When I test class inherits some other class than junit.framework.TestCase,
Eclipse tries to run this class as well. Since this superclass normally doesn't
contain any test, Eclipse raises a failure. 

For example, when inheriting JWebUnit's test class (WebTestCase), when I try to
run the package as JUnit Test Case, he tries to run WebTestCase as an ordinary
test class.

This could be reproduced following:

1. Setup a new Java Project;
2. Download jwebunit-1.2.zip and extract it to some folder;
3. Copy jwebunit-1.2/jwebunit-1.2.jar and all jars at jwebunit-1.2/lib to the
project lib directory;
4. Create a new class inheriting WebTestCase;
5. Run the package as JUnit Test.
Comment 1 Olivier Thomann CLA 2005-11-17 19:37:47 EST
Move to JDT/UI
Comment 2 Eclipse Genie CLA 2020-04-26 05:08:19 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.