-
Notifications
You must be signed in to change notification settings - Fork 25k
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
painless doc examples could be tested better #18961
Comments
It depends.... I can have a look at this on Monday probably.
|
Thanks... It may be a simple bug in the examples themselves. Generated yaml seemed ok but no expert... I just have the feeling no actual docs are being hit |
here is an example of what i'm trying that isn't provoking any fail. Of course this will compile, but if it were actually to run on any document it would crap out:
Since we have a lot of dynamic functionality i want it to catch me if i screw up. Part of the problem I think is that our examples are too lenient? I imagine having a lot of these to explain various syntax and stuff like that... Is there another way to encode checks other than |
Yes, use comment blocks:
|
thanks @clintongormley |
I merged #18979 which might make the comments not a required thing for painless. You bogusMethod example fails now. I'm going to close this because I think it is enough. If not, open it again. |
@nik9000 thanks a lot for looking into this! |
I want to revamp this doc, i really do. But right now the examples in there aren't really being tested. I can put garbage methods in scripts and nothing fails. Perhaps its only compiling them and not actually running them against any documents, I don't know...
The text was updated successfully, but these errors were encountered: