-
-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to test correctness of spoon.metamodel.Metamodel? #2047
Comments
After some more playing with Unsettable implies derive the list shorten to:
note: hardcoded value is correct. Comuputed value is wrong - returned by |
@monperrus There is a question how to assure correctness of computed metamodel in future. Current Spoon master tests are not sufficient ... and we planned to replace hardcoded metamodel from #1686 by current Solution Note: CtScanner based metamodel test is good, but it checks only roles whose values extends CtElement. The primitive role attributes (name, modifier, label, ...) are not tested here. Therefore the problem was not visible. |
Answering in #2050 |
I compared results returned by new
spoon.metamodel.Metamodel
with hardcoded Metamodel which was in PR #1686 and it found some problems.Many problems were fixed by readding contract "unsettable implies derived" from #1904, which was removed during Metamodel refactorings.
Here are remaining problems
The text was updated successfully, but these errors were encountered: