-
Notifications
You must be signed in to change notification settings - Fork 14
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
Verify that examples missing "-->" still compile #91
Comments
I second this. I would like to have my functions that return Html tested. In Particular, I do not care if it looks correct, just if it compiles. |
Found a workaround by adding
to the end of the code. |
I agree that this seems very handy! How exactly do you propose this should work though? At the moment this tool generates code files that elm-test than picks up. But if a file doesn't expose a test, then I don't think elm-test will pick it up and compilation errors won't be surfaced. On the other hand, generating files with |
Haven't used this tool in a while but
doesn't seem so bad for generated code that I won't be interacting with? Maybe I'm misremembering how this works though. |
Makes your tests run more slowly every time. Maybe a more complicated scheme would just create one fake test, but import all the typechecking modules to include them in the typecheck. That way the runtime penalty is always O(1) and compile time penalty isn't too bad, since elm does pretty decent caching there. |
I have documentation that looks like this
There isn't any meaningful output to test against with "-->" but I would still like to verify that this code compiles.
Edit: And in this case I just noticed that I renamed
signedInt
so this is indeed invalid code. Having a way to check for this kind of stuff would be very useful!The text was updated successfully, but these errors were encountered: