-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Codegen: use one generated test file per directory #19874
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
base: main
Are you sure you want to change the base?
Conversation
This collapses all generated test QL sources into a single one per directory, using query predicates to run the different tests. This should improve the time required to run generated tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
where | ||
toBeTested(x) and | ||
not x.isUnknown() and | ||
getNumberOfArgs = x.getNumberOfArgs() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new test does not output getNumberOfArgs
; is that deliberate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, as the entire list of args is in the same expected file, so I think that information is redundant, and reducing the number of columns helps readability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same goes for has...
for optional properties
This collapses all generated test QL sources into a single one per directory, using query predicates to run the different tests.
This should improve the time required to run generated tests.