Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How junit test runner and console works in 2 JVMs
How junit test runner and console works in 2 JVMs [message #212831] Thu, 18 August 2005 08:54 Go to next message
Eclipse UserFriend
Originally posted by: joseph_gamal.hotmail.com

Hi all
when we run junit test runner in eclipse , it creates a new java virtual
machine , but it send its testing results to the junit test runner in
eclipse in the original JVM. How do they do so ??
Also the same for the console , how the System.out of the second JVM is
reported in the original JVM
Re: How junit test runner and console works in 2 JVMs [message #212837 is a reply to message #212831] Thu, 18 August 2005 10:01 Go to previous messageGo to next message
Eclipse UserFriend
Joseph Khalil wrote:

> Hi all
> when we run junit test runner in eclipse , it creates a new java virtual
> machine , but it send its testing results to the junit test runner in
> eclipse in the original JVM. How do they do so ??
[..]

Via Sockets.
See RemoteTestRunner in plugin org.eclipse.jdt.junit.runtime
and RemoteTestRunnerClient in org.eclipse.jdt.junit

Markus
Re: How junit test runner and console works in 2 JVMs [message #213008 is a reply to message #212837] Sun, 21 August 2005 02:42 Go to previous message
Eclipse UserFriend
Originally posted by: joseph_gamal.hotmail.com

Thanks Markus
What about the console ? using sockets also?


I have another question , I sent it before to the newsgroup , but no one
answered , I hope you can help me in this issue also , it's also about junit
runner:
I want to make a specific task with junit plugin test , but i don't know how
to do it.All what i want to do , is to launch the workbench , and then
interact with
a view i have , and then press a button somewhere (in my view , or may be in
eclipse junit runner view) , and at this point of time junit plugin test
should start running the test suite i have. Is this possible ?

I did the previous task using swing junit runner , but I don't know how to
do this with eclipse runner , or may be there is a better solution.


Here's what i did with swing junit runner:

In the run method of an action I have, I wrote the following code the
following code:
String[] args = { "-noloading", "com.abc.mySuiteClass"};
junit.swingui.TestRunner runner = new junit.swingui.TestRunner();
runner.start(args);
so , when i selected this action , the swing test runner
dialog is launched , and the test suite is tested.

Thanks
Joseph




"Markus Keller" <markus_keller@ch.ibm.com> wrote in message
news:de24b7$au4$1@news.eclipse.org...
> Joseph Khalil wrote:
>
> > Hi all
> > when we run junit test runner in eclipse , it creates a new java virtual
> > machine , but it send its testing results to the junit test runner in
> > eclipse in the original JVM. How do they do so ??
> [..]
>
> Via Sockets.
> See RemoteTestRunner in plugin org.eclipse.jdt.junit.runtime
> and RemoteTestRunnerClient in org.eclipse.jdt.junit
>
> Markus
Previous Topic:Add action to JDT debug menu
Next Topic:How to get hold of the repository(CVS) revision of a ICompilationUnit ?
Goto Forum:
  


Current Time: Sat Nov 08 04:26:52 EST 2025

Powered by FUDForum. Page generated in 0.06776 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top