Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Xtext Release Engineering"

(Test FAQ)
(How do I add a test plug-in ?)
Line 34: Line 34:
 
** ''core-test'' headless plug-in test
 
** ''core-test'' headless plug-in test
  
* Add an entry in the target ''tmf'' of the Ant file  
+
* Add an entry in the target ''tmf'' of the Ant file ''/org.eclipse.xtext.releng/builder/tests/scripts/test.xml'' e.g.  
/org.eclipse.xtext.releng/builder/tests/scripts/test.xml
+
<source lang="xml">
*: e.g.  
+
<antcall target="runtests">
<antcall target="runtests">
+
   <param name="testPlugin" value="${my.plugin.tests}"/>
   <param name="testPlugin" value="${my.plugin.tests}" />
+
 
   <param name="report" value="my.plugin.tests"/>
 
   <param name="report" value="my.plugin.tests"/>
</antcall>
+
</antcall>
 +
</source>
 
   
 
   
 
--[[User:Jan.koehnlein.itemis.de|Jan.koehnlein.itemis.de]] 06:05, 23 July 2008 (EDT)
 
--[[User:Jan.koehnlein.itemis.de|Jan.koehnlein.itemis.de]] 06:05, 23 July 2008 (EDT)

Revision as of 06:07, 23 July 2008

Xtext build server

This documentation relates to Xtext version 2 which is currently under development. For Xtext shipped with oAW consult sourceforge.org

Build FAQ

How do I add a plug-in ?

  • Add your plug-in to one of the features. Make sure its dependencies also listed in the feature.
  • Add an entry in the maps file
/org.eclipse.xtext.releng/maps/xtext.map
  • If your plug-in has additional dependencies to third-party frameworks, make sure to select them on the Xtext build page.

--Jan.koehnlein.itemis.de 06:02, 23 July 2008 (EDT)

How do I trigger a build ?

  • Go to the Xtext build page.
  • Don't forget to add put your email address.
  • Click on build.

--Jan.koehnlein.itemis.de 06:02, 23 July 2008 (EDT)

Test FAQ

How do I add a test plug-in ?

  • Name your plug-in like
<plugin-to-be-tested>.tests
  • Generate a test suite, e.g. by running the Xtext Tools->Create Test Suite action, provided by org.eclipse.xtext.testcollector. Make sure the test suite is in an exported package.
  • Add file test.xml and add it to the binary build by checking it in the build.properties editor. Copy the contents form an existing test project and adapt plug-in name and classname. There are two kinds of tests:
    • ui-test plug-in test needing a workbench
    • core-test headless plug-in test
  • Add an entry in the target tmf of the Ant file /org.eclipse.xtext.releng/builder/tests/scripts/test.xml e.g.
<antcall target="runtests">
   <param name="testPlugin" value="${my.plugin.tests}"/>
   <param name="report" value="my.plugin.tests"/>
</antcall>

--Jan.koehnlein.itemis.de 06:05, 23 July 2008 (EDT)

Back to the top