I have created a local plugin as "localPlugin" in grails. While running the plugin project as grails -Dserver.port=7071 run-app
from terminal. It runs successfully as
| Running Grails application
| Server running. Browse to address:7071/localPlugin
How to test the localPlugin
before I include it in another web project in grails?
It depends on what you mean by test . Typically this would be done using unit and integration tests. However, from your question it would seem you want to test it within an application.
You have two options.
Create an application and include your plugin and test it through that application.
Try out the "Test apps" plugin .
Most authors of plugins create a sample test application to test their plugin within. If they need functional tests or to test the lifecycle events of the plugin.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.