Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI Support: Check generated test models for syntactic correctness #61

Open
frademacher opened this issue Aug 11, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@frademacher
Copy link
Collaborator

Currently, the LEMMA models generated by the de.fhdo.lemma.service.openapi.tests project are not checked for syntactic correctness. Consequently, if the syntax of a LEMMA modeling language should change in the future it may happen that the OpenAPI project produces a syntactically wrong output. In a perfect world, this should not happen because a change of the syntax of a LEMMA modeling language should always involve a corresponding adaptation of its extractor. However, since the extractors currently don't have accompanying tests, it would still make sense to let the OpenAPI tests parse LEMMA models after they were generated to detect potential mismatches between the actual syntax implementation and the one extracted from generated in-memory models.

To parse generated LEMMA models, the OpenAPI tests could probably do the same as the loadXtextResource() method over at

(yet, the OpenAPI tests project should not directly call loadXtextResource() as this would result in a dependency on the de.fhdo.lemma.eclipse.ui project by the tests project which we definitely do not want).

@frademacher frademacher added the enhancement New feature or request label Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants