-
Notifications
You must be signed in to change notification settings - Fork 168
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
Implement SQL unit tests for dataset queries #230
Comments
@lewish Is it possible to specify multiple mocks/inputs? And if so, how would one do this? |
Hopefully it's all clear in https://docs.dataform.co/guides/tests, but yes it is possible to specify multiple named inputs. |
@BenBirt It is not clear, because there are no examples of multiple named inputs in that guide and we've tried a few things that did not seem to work. Do you have a working example? |
@BenBirt Andrew and I figured out that a semicolon is needed between inputs just by testing out random syntax. It may be helpful to include this in the docs in case others may be running into a similar issue |
That is completely unexpected, apologies. I've filed #1351 |
It should be possible to write a unit test for a dataset query, where mocked data can be provided as input in place of any referenced datasets, and an expected result is also provided.
Awaiting a design doc, will update.
The text was updated successfully, but these errors were encountered: