De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx]
De la part de MAGGI Benoit
Envoyé : mercredi 8 avril 2015 08:24
À : Papyrus Project list
Objet : [PROVENANCE INTERNET] Re: [mdt-papyrus.dev] Where is the code generator for diagram tests?
Hi Christian,
I’m not aware of all the details, but yes it seems that this patch is pushing new tests for most of the diagrams.
It may be a good idea to split the patch to separate :
-
the generator (+framework)
-
and the generated tests (for each diagrams)
If we want to maintain this generator, we should also add a “version time stamped information”
in the one (many) of generated files since the generated test don’t follow the same lifecycle as standard generated code.
Regards,
Benoit
De :
mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx]
De la part de Christian W. Damus
Envoyé : mardi 7 avril 2015 16:50
À : Papyrus Project list
Objet : Re: [mdt-papyrus.dev] Where is the code generator for diagram tests?
It appears that this generates an entirely new suite of tests, correct? I’ll take a look at extending this framework to support my needs, which are a bit peculiar because my test cases are driven by edits in the semantic model, not by
edits in the diagram.
I expect I’ll be returning to the mailing list for a good deal of help in the next while … :-)
On Tue, Apr 7, 2015 at 2:17 AM, MAGGI Benoit <Benoit.MAGGI@xxxxxx> wrote:
Hi Christian,
I believe the generator is Gerrit (here [1]) waiting for a review.
Regards,
Benoit Maggi
[1] :
https://git.eclipse.org/r/#/c/38587/
According to the developer guide on the wiki [1], there is a diagram tests generation framework. It is also referenced in the headers of some source files as the “Papyrus Test
Framework”. Certainly, many of the tests appear to be generated.
Where is the code generator? I don’t find the QVTo transformations alluded to by the wiki documentation. I don’t see the UML Testing Profile in the repository, nor any MWE workflows
or launch configurations that would run test generation.
I ask because I plan to add diagram synchronization (canonical-edit-policy) tests to each diagram’s test bundle, and I thought it would make sense to investigate the possibility
of including some scaffolding at least in the test generator. Perhaps these tests were generated once by something that isn’t in the repository and have ever since been maintained “by hand”?