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
LinuxMain template #125
LinuxMain template #125
Conversation
@ilyapuchka @krzysztofzablocki Sorry for the late response. In my case the stencil template got parsed wrong and therefore an error has been thrown. Maybe the Stencil versions declared by SwiftPM and CocoaPods got out of sync?
But everything else looks promising. |
@vknabel I think that may be an issue, it should point to stencilproject/Stencil@99efba5 |
that's my bad, I'll update it in my next pr |
@ilyapuchka I have released a new tag. (Sourcery still needs to use my fork for Stencil) |
@ilyapuchka Works great! Shall be add some warnings when the methods/classes are not public? This would be an compile error on Linux. |
@ilyapuchka by default they are internal, but the |
We should add access level filter if we don't have it, it will come handy |
@vknabel That explains why I was using |
@vknabel actually I'm not sure about warnings, feels like it's better just to make generated code not to compile if user forgot to make test method public. If he does not want to include it in test he can always adjust template to use annotations for methods or to prefix those methods names with |
why don't we just filter to only support public in the template? otherwise I'd agree with @ilyapuchka, if user misuses the template its better to make it not compile so they fix their setup |
@krzysztofzablocki we can, but I guess the whole purpose of such template is to never have any tests missing because you forgot to add it in |
I'd go with fail to compile, Sourcery driving goal is to limit human errors |
@krzysztofzablocki @ilyapuchka Sorry for the confusion. It's good that the build breaks when one test is not public. At least it breaks when testing on Linux. Initially I thought about additionally marking non-public tests with a comment Instead I would just mention in the But this template works great. 👍 |
Resolves #118