| Summary: | [JUnit] Old method name is kept in launch config after changing the test class | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Meng Xin Zhu <kane.zhu> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | curtis.windatt.public, daniel_megert, kane.mx, markus.kell.r |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Meng Xin Zhu
The UI you are modifying on the junit test tab is provided by JDT. Moving to them for comment. When I change the class, an error message is displayed in the launch configuration dialog "Can not find test method [foo] in project [bar]". However, the debug button is still enabled. Perhaps this tab should work similarly to the Java Application main tab which disables the debug button when main class is not specified. That's actually by design. The "Test method" field in the launch configuration determines the "name" of the test. Since the JUnit nomenclature is quite fuzzy, and the default implementation of TestCase interprets the "name" as methods name, we've called the field "Test method" in the UI. Other implementations of TestCase can use the "name" in a different way, and that's why the Run/Debug button is not disabled, even when then test class does not contain a method with the given name. The UI shows an error message, and if you ignore that, it's your choice ;-) |