[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pdt-dev] Develope pdt extension


You can forgot about this message ;) Problem was with pdt-eg Core-Plugin feature.xml. 
After mvn install I had in my local repository old pdt version (3.0.1). After fix I can easy integrate pdtt files in this plugin.

Dawid PakuÅa 
+48 795 996 064

On Thursday, 7 February 2013 at 19:09, Dawid PakuÅa wrote:

Czesc ;)

Sorry for my english and thank you for your reply.
I want (have to) write some tests for pdt-eg Core-Plugin validators (without this, extending its like a lottery).
I was trying to use existing pdt test suite. At begin I want to use PHP54ErrorReportingTest but I each time I see in surefire report:

java.lang.NoSuchMethodError: org.eclipse.dltk.core.IBuildpathEntry.isContainerEntry()Z
at org.eclipse.php.internal.core.language.LanguageModelInitializer.enableLanguageModelFor(LanguageModelInitializer.java:181)
at org.eclipse.php.internal.core.project.PHPNature.configure(PHPNature.java:158)
at org.eclipse.core.internal.resources.NatureManager$1.run(NatureManager.java:144)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.resources.NatureManager.configureNature(NatureManager.java:159)
at org.eclipse.core.internal.resources.NatureManager.configureNatures(NatureManager.java:205)
at org.eclipse.core.internal.resources.Project.basicSetDescription(Project.java:102)
at org.eclipse.core.internal.resources.Project.setDescription(Project.java:1349)
at org.eclipse.core.internal.resources.Project.setDescription(Project.java:1378)
at org.eclipse.php.core.tests.errors.PHP54ErrorReportingTests.setUpSuite(PHP54ErrorReportingTests.java:59)
at org.eclipse.php.core.tests.errors.PHP54ErrorReportingTests$3.setUp(PHP54ErrorReportingTests.java:140)

Dawid PakuÅa 
+48 795 996 064

On Thursday, 7 February 2013 at 07:40, Jacek PospychaÅa wrote:

Czesc Dawid,

re 1. do I correctly understand that you have some external pdt
extension and now you'd like to run pdtt tests on top of eclipse+your
extension? Or you'd like to write your own pdtt tests for your
So regarding running them, I'm sure you should be able to run PDT
tests from within Eclipse. You need to create JUnit Plug-in Test
launch configuration, make sure that it includes PDT plugins, PDT unit
tests and your extension and then just run PDT tests.
The unit tests to run are specified in test plugins pom.xml files:
org.eclipse.php.core.tests plugin -> main test suite is
org.eclipse.php.ui.tests plugin -> main test suite is

Once you have them running inside Eclipse, you should also be able to
get tests running automatically in Maven.

Now if you'd like to write your own pdtt tests, you could try just
copy one of pdt test plugins and replace it with your tests.

re 2. we have a wiki page, that you probably have already seen:
http://wiki.eclipse.org/PDT. It's not perfect, some data is quite old,
but most is still relevant.
There's also a community of PDT extenders, who created lots of
interesting PDT extensions. You might find it useful to look at their
source code, or even get in touch with them.
See Github https://github.com/pdt-eg and mailing list

Feel free to ask here if you have more specific questions,



On Wed, Feb 6, 2013 at 11:19 PM, Dawid PakuÅa <dawid.pakula@xxxxxxxxx> wrote:

I have two simple question for pdt.
1. Is any method to integrate pdtt tests with external pdt extensions?
2. Is there documentation for pdt developing (not only javadoc)?

Thank you
Dawid PakuÅa
+48 795 996 064

pdt-dev mailing list
pdt-dev mailing list