-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unit tests for boolean columns (and more) #386
Comments
I imagined that we simply use this to test some queries: Similar to this test: That does not require any restructuring of the actual code. |
II had looked at the other tests, but my reservations are these:
This is why I think it's good to hold off work on unit tests here; I didn't see an obvious need while coding (still don't see it) and see having a better perspective in the future. (If you want the unit tests for debuggability while coding, maybe we could still repurpose the e2e tests to access the binary directly? Maybe let's discuss in video next week. Maybe I'll also see reasons myself as I work on the next issues.) |
Ok, maybe let's call the tests that I have in mind "component tests".
IMO the responsibilities of the tests could be:
|
PR #384 does not contain any unit tests, only e2e tests.
The open question is what exactly should be tested: most changes just add a case to a pattern match-alike statement, or copy a file and modify it for the type in question. Possibly the code should be changed to not require file copies, and types can just follow a protocol; then tests can just focus on the implementation of the protocol, and it would be clear what file(s) to add unit tests for.
Probably match-alike statements should ~always only dispatch to a method call.
So this will go into some potential rework of the code structure, which may also be useful for predicate based testing.
The text was updated successfully, but these errors were encountered: