Syntax Validation
The Poshi Standalone grade projects includes a validation task that can be used to check your code for syntax errors before running your test. To use this, simply run ./gradlew validatePoshi
on your root directory. If there are no errors, the command runs successfully indicated by the message:
Errors in validation are descriptive and will point to the line of code where the error is. In the example below, there are two poshi errors:
-
The function
ThisIsNotAFunction
on line 12 of theLiferayLearnSearch.macro
is not valid. -
The macro command
LiferayLearnSearch#search
on line 12 of theLiferayLearn.testcase
is not valid.