-
Notifications
You must be signed in to change notification settings - Fork 630
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 unit test inputs are syntactically correct in their own language #1903
Comments
Agreed, for all but expected-failures we should most probably have valid test files. |
I have to use the usual phrase: pull requests are welcome. |
We should put the command line for verifying the syntax to somewhere in our source tree. |
Thank for your comments @b4n . While creating this issue, I was under the impression that ctags unit tests should always use valid input language. But upon further thought, that may not be true. Given that requirement, not all test input files have to be syntactically correct in the original languages. But I do not know whether those type of tests reside in Units/* directory. (I am not familiar with ctags repo yet) What are the "expected-failures" test cases inside the Units library ? |
@ahakanbaba, what you wrote is correct. The Units directory holds both types of test inputs. |
While looking at the unit tests in
/ctags/Units/parser-puppetManifest.r
I have realized some of the *.pp files have errors in terms of puppet.The errors I have discovered are the following:
Maybe running an acceptance test on these unit test input files is the right thing to do. Overtime these files change via manual edits and we want to make sure they are still syntactically correct.
For puppet something like the following can be executed to verify correct syntax.
The text was updated successfully, but these errors were encountered: