[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: how to determine programmatically if auto-build has finished ?

For the Core tests...

For Source projects:
- Create and anonymous pserver CVS connection to dev.eclipse.org
- check out:
org.eclipse.core.test.harness
org.eclipse.core.test.resources
org.eclipse.core.test.runtime
org.eclipse.test
<may also need performance test project...check Problems view for errors>


Alternatively you can:
- download the Automated Tests zip
- extract the tests zip file found WITHIN the downloaded zip
- include it in your target platform
- add the plug-ins to the Java search path via the Plug-ins view context menu (allows you open types, search for references, etc)
- or import plug-ins as binary


When you unzip the files, you can either unzip them to your Eclipse install or create an extension dir. (as explained in the Help docs)


Edoardo Comar wrote:
thanks a lot.
BTW,
What environment needs to be set up to browse the tests ?
the instruction on the download page tell about how to RUN them, but I'm interested in kind of creating binary projects with linked content for them.


DJ Houghton wrote:

We do the same in our tests. Check out:

project: org.eclipse.core.tests.harness
class/method: EclipseWorkspaceTest#waitForBuild

Edoardo Comar wrote:

my plugin tests run with the default auto-build enabled.
i often do
1-  resource changes
2 - then need to wait for the build to finsih
3 - check the results.

I mimic 2 by manually invoking a build of the workspace
but I really would like just to wait until auto-build is completed.

how can I check that ?

do I need to temporarily add a resource listener that waits for an event of type POST_BUILD or is there a more straightforward way ?

TIA,
Edo