Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 171123 - Create setting to run JUnit tests as you type
Summary: Create setting to run JUnit tests as you type
Status: RESOLVED DUPLICATE of bug 51292
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-19 20:12 EST by Remy Suen CLA
Modified: 2009-02-25 19:15 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2007-01-19 20:12:26 EST
The JDT Java editor allows for syntax/semantics/what-not checking on the fly as you type. It would be nice if we can set a JUnit TestCase or TestSuite to run after this check has been completed so that not only do we know our code actually compiles, but we will also know that our JUnit tests are all green. Of course, if there are compiler errors, they should not run.
Comment 1 Dani Megert CLA 2007-01-21 10:20:01 EST

*** This bug has been marked as a duplicate of bug 51292 ***
Comment 2 Renato Silva CLA 2009-02-25 18:28:39 EST
I think it's a good idea to have unit testing as part of the build process, and a simple way of doing it could be run a test suite on autobuilds, as requested in bug 245776.

For example, we could have a new builder type "JUnit Test" together with "Program" and "Ant Build", and then check run on autobuilds option. Another way would be adding such option for JUnit run configurations. In both cases being possible to show JUnit view only on test failures.