Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Xtext Release Engineering"
(→Xtext build server) |
(→How do I add a test plug-in ?) |
||
Line 30: | Line 30: | ||
* 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. | * 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'' | + | * Add file ''test.xml'' to the root of the test plug-in |
− | ** ''ui-test'' plug-in test needing a workbench | + | ** Copy the contents from an existing test plug-in. |
− | ** ''core-test'' headless plug-in test | + | ** Add it to the binary build by checking it in the ''build.properties'' editor. |
+ | ** Adapt the properties ''plugin-name'' and ''classname''. | ||
+ | ** Choose the right target to run. 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. | * Add an entry in the target ''tmf'' of the Ant file ''/org.eclipse.xtext.releng/builder/tests/scripts/test.xml'' e.g. |
Revision as of 06:25, 23 July 2008
Contents
Xtext build server
This documentation relates to Xtext version 2 which is currently under development. For Xtext shipped with oAW 4.3 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 to the root of the test plug-in
- Copy the contents from an existing test plug-in.
- Add it to the binary build by checking it in the build.properties editor.
- Adapt the properties plugin-name and classname.
- Choose the right target to run. 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)