No sorry there is no example but it is a good idea (we also think for providing a target definition file and a Oomph)
For your use case it don’t seem difficult we could add a tests folder to the repository and add tests to the compile.
To implement this basic use case you can be inspired by the code of this class (see run method) : https://github.com/opcoach/gendocIntegration/blob/master/com.opcoach.gendoc/src/com/opcoach/gendoc/GenerateDocumentHandler.java
Olivier prouvost in copy will soon add modifications to deal with specific eobjects and output path
And to test if no errors occur you have to check the content of the diagnostician
HTH
Regards
Tristan
From: gendoc-dev-bounces@xxxxxxxxxxx [mailto:gendoc-dev-bounces@xxxxxxxxxxx]
On Behalf Of MAGGI Benoit
Sent: Friday, June 10, 2016 3:47 PM
To: Gendoc developer discussions
Subject: [gendoc-dev] Test for Gendoc Template
Hi,
Is there an example on how to setup an simple generation test.
Nothing fancy, just:
-
Given a model
-
Given a template
-
Execute the generation
-
Check that the doc exist and no generation exception
I would like to avoid using SWTBot (or any UI manipulation) if possible.
Regards,
Benoit MAGGI
Research Engineer
Commission for Atomic Energy and Alternative Energies (CEA)
Direction of Technological Research (DRT)
Systems and Technology Integration Laboratory (LIST)
Software and Systems Engineering Department (DILS)
Model-driven Engineering for Embedded Systems Laboratory (LISE)

Commissariat à l’énergie atomique et aux énergies alternatives
(CEA)
Paris-Saclay Campus - Nano-INNOV | Bât. 862-PC1081 | F-91191 Gif-sur-Yvette Cedex
benoit.maggi@xxxxxx
| LinkedIn
| Papyrus
Ce message et toutes les pièces jointes (ci-après le "message") sont établis à l’intention exclusive des destinataires désignés. Il contient des informations confidentielles et pouvant être protégé par le secret professionnel. Si vous recevez ce message par
erreur, merci d'en avertir immédiatement l'expéditeur et de détruire le message. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse de l’émetteur.
L'internet ne garantissant pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales) décline(nt) toute responsabilité au titre de son contenu. Bien que ce message ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur
ne peut garantir l’absence totale de logiciels malveillants dans son contenu et ne pourrait être tenu pour responsable des dommages engendrés par la transmission de l’un d’eux.