Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352311 - Initial code for the JUnit discoverer migration
Summary: Initial code for the JUnit discoverer migration
Status: NEW
Alias: None
Product: MoDisco
Classification: Modeling
Component: UseCases (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows 7
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-18 04:12 EDT by saurav sarkar CLA
Modified: 2013-12-19 11:26 EST (History)
1 user (show)

See Also:


Attachments
Code for the Junit discoverer for JUnit 3 (165.98 KB, application/x-zip-compressed)
2011-07-18 04:12 EDT, saurav sarkar CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description saurav sarkar CLA 2011-07-18 04:12:25 EDT
Created attachment 199811 [details]
Code for the Junit discoverer for JUnit 3

Hi All,

I was trying to migrate the already exsisting Junit discoverer to the new Discoverer framework using the EMF facets.
I could migrate the discoverer for Junit 3.
This works on a Java Project.It discovers the Junit model from the Java project.

Changes made

• The Discoverer works on the new discoverer framework.
• Old code has been migrated to suit the new discoverer framework code.
• I have added one more facet reference called AssertCalls which will also find out how many assert calls were made from a particular test method.
• Changed the Query to recognize the test suite

Open points
• Facets for Junit extensions are not yet added like nbTests etc.
• The test model loads the full model including the parent java model

I would also need to write a similar discoverer for JUnit4.I guess I would need to write some more Java Model queries for JUnit4.
I have attached the Junit 3 discoverer code.Please review the same and provide your comments.
I would modify if any changes are required.Once I get a green signal I will start working on the JUnit4

Let me know if there is any problem to open the code.

Cheers,
Saurav