Home » Language IDEs » Java Development Tools (JDT) » How to add a listener to JUnitCore in Eclipse? 
| How to add a listener to JUnitCore in Eclipse? [message #260874] | 
Mon, 29 June 2009 06:46   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hi, 
 
Does anyone know how to add a listener to JUnitCore in Eclipse?  What I am  
trying to do is to add the SpiraTest Listener to Eclipse, so Eclipse will  
report the JUnit test results back to SpiraTest.  (If anyone knows  
SpiraTest, or actaully have done it, would you please let me know how to  
do it?) 
 
Note: SpiraTest is a test management tool.  They have a plug-in tool for  
reporting JUnit test results back to SpiraTest. 
 
 
The following two lines of code are what I need to add in Eclipse. 
//Instantiate the JUnit core 
JUnitCore core = new JUnitCore(); 
//Add the custom SpiraTest listener 
core.addListener(new SpiraTestListener()); 
 
I searched Eclipse help.  I think I need to import  
org.eclipse.jdt.junit.JUnitCore, and then call  
addTestRunListener(TestRunListener listener).  However, I can't find  
org.eclipse.jdt.junit.JUnitCore to import.  I can't even find  
org.eclipse.jdt.junit to import.  So, I can't instantiate a JUnitCore  
object, and move on. 
 
Can anyone tell me what jar library I need to import in order to  
instantiate a JUnitCore object?  And how do I actually add a listener to  
JUnitCore in Eclipse? 
 
thanks, 
Kin
 |  
 |  
  |  
| Re: How to add a listener to JUnitCore in Eclipse? [message #260879 is a reply to message #260874] | 
Mon, 29 June 2009 07:14    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Kin wrote: 
> Hi, 
> 
> Does anyone know how to add a listener to JUnitCore in Eclipse?  What  
> I am trying to do is to add the SpiraTest Listener to Eclipse, so  
> Eclipse will report the JUnit test results back to SpiraTest.  (If  
> anyone knows SpiraTest, or actaully have done it, would you please let  
> me know how to do it?) 
> 
> Note: SpiraTest is a test management tool.  They have a plug-in tool  
> for reporting JUnit test results back to SpiraTest. 
> 
> 
> The following two lines of code are what I need to add in Eclipse. 
> //Instantiate the JUnit core 
> JUnitCore core = new JUnitCore(); 
> //Add the custom SpiraTest listener 
> core.addListener(new SpiraTestListener()); 
> 
> I searched Eclipse help.  I think I need to import  
> org.eclipse.jdt.junit.JUnitCore, and then call  
> addTestRunListener(TestRunListener listener).  However, I can't find  
> org.eclipse.jdt.junit.JUnitCore to import.  I can't even find  
> org.eclipse.jdt.junit to import.  So, I can't instantiate a JUnitCore  
> object, and move on. 
You need to add the 'org.eclipse.jdt.junit' as required bundle. 
 
Dani 
> 
> Can anyone tell me what jar library I need to import in order to  
> instantiate a JUnitCore object?  And how do I actually add a listener  
> to JUnitCore in Eclipse? 
> 
> thanks, 
> Kin 
>
 |  
 |  
  |  
| Re: How to add a listener to JUnitCore in Eclipse? [message #261178 is a reply to message #260879] | 
Wed, 15 July 2009 03:48    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Daniel, 
 
Can you please tell me to find org.eclipse.jdt.junit?  I don't see it in  
the Eclipse installed on my computer.  And I don't know where to find it. 
 
Thanks, 
Kin 
 
Daniel Megert wrote: 
 
> Kin wrote: 
>> Hi, 
>> 
>> Does anyone know how to add a listener to JUnitCore in Eclipse?  What  
>> I am trying to do is to add the SpiraTest Listener to Eclipse, so  
>> Eclipse will report the JUnit test results back to SpiraTest.  (If  
>> anyone knows SpiraTest, or actaully have done it, would you please let  
>> me know how to do it?) 
>> 
>> Note: SpiraTest is a test management tool.  They have a plug-in tool  
>> for reporting JUnit test results back to SpiraTest. 
>> 
>> 
>> The following two lines of code are what I need to add in Eclipse. 
>> //Instantiate the JUnit core 
>> JUnitCore core = new JUnitCore(); 
>> //Add the custom SpiraTest listener 
>> core.addListener(new SpiraTestListener()); 
>> 
>> I searched Eclipse help.  I think I need to import  
>> org.eclipse.jdt.junit.JUnitCore, and then call  
>> addTestRunListener(TestRunListener listener).  However, I can't find  
>> org.eclipse.jdt.junit.JUnitCore to import.  I can't even find  
>> org.eclipse.jdt.junit to import.  So, I can't instantiate a JUnitCore  
>> object, and move on. 
> You need to add the 'org.eclipse.jdt.junit' as required bundle. 
 
> Dani 
>> 
>> Can anyone tell me what jar library I need to import in order to  
>> instantiate a JUnitCore object?  And how do I actually add a listener  
>> to JUnitCore in Eclipse? 
>> 
>> thanks, 
>> Kin 
>>
 |  
 |  
  |  
| Re: How to add a listener to JUnitCore in Eclipse? [message #261183 is a reply to message #261178] | 
Wed, 15 July 2009 04:34    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Kin wrote: 
> Daniel, 
> 
> Can you please tell me to find org.eclipse.jdt.junit?  I don't see it  
> in the Eclipse installed on my computer.  And I don't know where to  
> find it. 
It's part of Eclipse SDK:  
 http://download.eclipse.org/eclipse/downloads/drops/R-3.5-20 0906111540/index.php 
 
Dani 
> 
> Thanks, 
> Kin 
> 
> Daniel Megert wrote: 
> 
>> Kin wrote: 
>>> Hi, 
>>> 
>>> Does anyone know how to add a listener to JUnitCore in Eclipse?   
>>> What I am trying to do is to add the SpiraTest Listener to Eclipse,  
>>> so Eclipse will report the JUnit test results back to SpiraTest.   
>>> (If anyone knows SpiraTest, or actaully have done it, would you  
>>> please let me know how to do it?) 
>>> 
>>> Note: SpiraTest is a test management tool.  They have a plug-in tool  
>>> for reporting JUnit test results back to SpiraTest. 
>>> 
>>> 
>>> The following two lines of code are what I need to add in Eclipse. 
>>> //Instantiate the JUnit core 
>>> JUnitCore core = new JUnitCore(); 
>>> //Add the custom SpiraTest listener 
>>> core.addListener(new SpiraTestListener()); 
>>> 
>>> I searched Eclipse help.  I think I need to import  
>>> org.eclipse.jdt.junit.JUnitCore, and then call  
>>> addTestRunListener(TestRunListener listener).  However, I can't find  
>>> org.eclipse.jdt.junit.JUnitCore to import.  I can't even find  
>>> org.eclipse.jdt.junit to import.  So, I can't instantiate a  
>>> JUnitCore object, and move on. 
>> You need to add the 'org.eclipse.jdt.junit' as required bundle. 
> 
>> Dani 
>>> 
>>> Can anyone tell me what jar library I need to import in order to  
>>> instantiate a JUnitCore object?  And how do I actually add a  
>>> listener to JUnitCore in Eclipse? 
>>> 
>>> thanks, 
>>> Kin 
>>> 
> 
>
 |  
 |  
  |  
| Re: How to add a listener to JUnitCore in Eclipse? [message #261330 is a reply to message #261183] | 
Wed, 22 July 2009 06:33    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
I do have Eclipse SDK, and I just downloaded Eclipse SDK 3.5 again.  When  
I look into the plugins folder, I do see the following files. 
 
org.eclipse.jdt.junit.runtime.source_3.4.100.v20090513-2000 
org.eclipse.jdt.junit.runtime_3.4.100.v20090513-2000 
org.eclipse.jdt.junit.source_3.5.0.v20090526-2000 
org.eclipse.jdt.junit4.runtime.source_1.1.0.v20090513-2000 
org.eclipse.jdt.junit4.runtime_1.1.0.v20090513-2000 
org.eclipse.jdt.junit_3.5.0.v20090526-2000 
 
Aren't they what I need?  Excuse me, but I don't seem to get it.  If not,  
exactly what I need?  I just can't get to import "org.eclipse.jdt.junit"  
in the Eclipse installed on my machine. 
 
I am a newbee.  If you can get me detail steps of how to get the package  
file and import in Eclipse, it will be greatly appreciated. 
 
Thank you, 
Kin 
 
Daniel Megert wrote: 
 
> Kin wrote: 
>> Daniel, 
>> 
>> Can you please tell me to find org.eclipse.jdt.junit?  I don't see it  
>> in the Eclipse installed on my computer.  And I don't know where to  
>> find it. 
> It's part of Eclipse SDK:  
>  
 http://download.eclipse.org/eclipse/downloads/drops/R-3.5-20 0906111540/index.php 
 
> Dani 
>> 
>> Thanks, 
>> Kin 
>> 
>> Daniel Megert wrote: 
>> 
>>> Kin wrote: 
>>>> Hi, 
>>>> 
>>>> Does anyone know how to add a listener to JUnitCore in Eclipse?   
>>>> What I am trying to do is to add the SpiraTest Listener to Eclipse,  
>>>> so Eclipse will report the JUnit test results back to SpiraTest.   
>>>> (If anyone knows SpiraTest, or actaully have done it, would you  
>>>> please let me know how to do it?) 
>>>> 
>>>> Note: SpiraTest is a test management tool.  They have a plug-in tool  
>>>> for reporting JUnit test results back to SpiraTest. 
>>>> 
>>>> 
>>>> The following two lines of code are what I need to add in Eclipse. 
>>>> //Instantiate the JUnit core 
>>>> JUnitCore core = new JUnitCore(); 
>>>> //Add the custom SpiraTest listener 
>>>> core.addListener(new SpiraTestListener()); 
>>>> 
>>>> I searched Eclipse help.  I think I need to import  
>>>> org.eclipse.jdt.junit.JUnitCore, and then call  
>>>> addTestRunListener(TestRunListener listener).  However, I can't find  
>>>> org.eclipse.jdt.junit.JUnitCore to import.  I can't even find  
>>>> org.eclipse.jdt.junit to import.  So, I can't instantiate a  
>>>> JUnitCore object, and move on. 
>>> You need to add the 'org.eclipse.jdt.junit' as required bundle. 
>> 
>>> Dani 
>>>> 
>>>> Can anyone tell me what jar library I need to import in order to  
>>>> instantiate a JUnitCore object?  And how do I actually add a  
>>>> listener to JUnitCore in Eclipse? 
>>>> 
>>>> thanks, 
>>>> Kin 
>>>> 
>> 
>>
 |  
 |  
  |  
| Re: How to add a listener to JUnitCore in Eclipse? [message #468171 is a reply to message #261330] | 
Tue, 04 August 2009 09:09   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Kin wrote: 
> I do have Eclipse SDK, and I just downloaded Eclipse SDK 3.5 again.   
> When I look into the plugins folder, I do see the following files. 
> 
> org.eclipse.jdt.junit.runtime.source_3.4.100.v20090513-2000 
> org.eclipse.jdt.junit.runtime_3.4.100.v20090513-2000 
> org.eclipse.jdt.junit.source_3.5.0.v20090526-2000 
> org.eclipse.jdt.junit4.runtime.source_1.1.0.v20090513-2000 
> org.eclipse.jdt.junit4.runtime_1.1.0.v20090513-2000 
> org.eclipse.jdt.junit_3.5.0.v20090526-2000 
> 
> Aren't they what I need?  Excuse me, but I don't seem to get it.  If  
> not, exactly what I need?  I just can't get to import  
> "org.eclipse.jdt.junit" in the Eclipse installed on my machine. 
> 
> I am a newbee.  If you can get me detail steps of how to get the  
> package file and import in Eclipse, it will be greatly appreciated. 
Did you figure it out by now? 
 
Dani 
> 
> Thank you, 
> Kin 
> 
> Daniel Megert wrote: 
> 
>> Kin wrote: 
>>> Daniel, 
>>> 
>>> Can you please tell me to find org.eclipse.jdt.junit?  I don't see  
>>> it in the Eclipse installed on my computer.  And I don't know where  
>>> to find it. 
>> It's part of Eclipse SDK: 
>  http://download.eclipse.org/eclipse/downloads/drops/R-3.5-20 0906111540/index.php  
> 
> 
>> Dani 
>>> 
>>> Thanks, 
>>> Kin 
>>> 
>>> Daniel Megert wrote: 
>>> 
>>>> Kin wrote: 
>>>>> Hi, 
>>>>> 
>>>>> Does anyone know how to add a listener to JUnitCore in Eclipse?   
>>>>> What I am trying to do is to add the SpiraTest Listener to  
>>>>> Eclipse, so Eclipse will report the JUnit test results back to  
>>>>> SpiraTest.  (If anyone knows SpiraTest, or actaully have done it,  
>>>>> would you please let me know how to do it?) 
>>>>> 
>>>>> Note: SpiraTest is a test management tool.  They have a plug-in  
>>>>> tool for reporting JUnit test results back to SpiraTest. 
>>>>> 
>>>>> 
>>>>> The following two lines of code are what I need to add in Eclipse. 
>>>>> //Instantiate the JUnit core 
>>>>> JUnitCore core = new JUnitCore(); 
>>>>> //Add the custom SpiraTest listener 
>>>>> core.addListener(new SpiraTestListener()); 
>>>>> 
>>>>> I searched Eclipse help.  I think I need to import  
>>>>> org.eclipse.jdt.junit.JUnitCore, and then call  
>>>>> addTestRunListener(TestRunListener listener).  However, I can't  
>>>>> find org.eclipse.jdt.junit.JUnitCore to import.  I can't even find  
>>>>> org.eclipse.jdt.junit to import.  So, I can't instantiate a  
>>>>> JUnitCore object, and move on. 
>>>> You need to add the 'org.eclipse.jdt.junit' as required bundle. 
>>> 
>>>> Dani 
>>>>> 
>>>>> Can anyone tell me what jar library I need to import in order to  
>>>>> instantiate a JUnitCore object?  And how do I actually add a  
>>>>> listener to JUnitCore in Eclipse? 
>>>>> 
>>>>> thanks, 
>>>>> Kin 
>>>>> 
>>> 
>>> 
> 
>
 |  
 |  
  |   
Goto Forum:
 
 Current Time: Tue Nov 04 09:33:20 EST 2025 
 Powered by  FUDForum. Page generated in 0.06391 seconds  
 |