-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Consolidate runtime tests #3775
base: dev
Are you sure you want to change the base?
Conversation
Signed-off-by: Ivan Kochurkin <kvanttt@gmail.com>
… for now) Signed-off-by: Ivan Kochurkin <kvanttt@gmail.com>
Signed-off-by: Ivan Kochurkin <kvanttt@gmail.com>
Signed-off-by: Ivan Kochurkin <kvanttt@gmail.com>
Signed-off-by: Ivan Kochurkin <kvanttt@gmail.com>
08c105b
to
09a29ed
Compare
Signed-off-by: Ivan Kochurkin <kvanttt@gmail.com>
09a29ed
to
841bb57
Compare
Hmm... I like the idea of consolidating the visitor tests but I worry about putting multiple languages in one descriptor file. Maybe there's a new way to think about this? Let me finish up the json stuff before I think about this :) You'll note that I have moved the unit tests to the appropriate descriptors area :) |
Visitors are only one example, but actually there are more runtime tests that should be consolidated if it's possible and reasonable.
Yes, I also thought about that and came up with the following considerations:
But we can support both schemes depending on circumstances. At first, try to read a section with code from a descriptor file. If such section is not found, search for runtime files by mask: If code size is small, then a single descriptor is more preferable than multiple files. Otherwise, if code size is quite big, then use multiple runtime files that are being searched by mask. |
TestVisitors.java tests are actual for all runtimes not only for Java. But it uses quite runtime specific code. I suggest adding new sections
codeDeclaration
andcodeCall
to descriptor file that look the following way:Moreover, with the new test infrastructure, it's possible to test code even without grammar:
@parrt what do you think about this?