You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by Oliver Cabral Jorge <ol...@gmail.com> on 2020/12/21 19:58:39 UTC
How to test plugin code without deploying?
Hey guys, good afternoon.
Quick (dumb) question: How can I test a custom plugin made without
deploying it to UNOMI server?
At this moment I have the maven project, the java classes, blueprint and
everything, but my validation is
- perform update
- compile JAR
- deploy on UNOMI dev server
- test with dev web site
- perform corrections if any
- restart all process if necessary
Is there a way to test it directly on Eclipse or any other tool and perform
all tests and validations before deploying?
I could not find instructions on the 1.5 manual.
Thanks!
--
----------------------------------------
Oliver Cabral Jorge
email: olivercj@gmail.com
cel: (41) 9548 1000
----------------------------------------
Re: How to test plugin code without deploying?
Posted by Oliver Cabral Jorge <ol...@gmail.com>.
Thanks a million, Jean-Baptiste.
I will try all options and see which one helps me the most.
Thanks!
On Wed, Dec 23, 2020 at 3:05 AM Jean-Baptiste Onofre <jb...@nanthrax.net>
wrote:
> Hi,
>
> You can do unit test directly in the plugin folder.
>
> If you want more "concrete" tests, you can do test (with Karaf/Pax Exam).
> Basically, it bootstraps unomi in the test, you can deploy your plugin and
> test it.
>
> Regards
> JB
>
> > Le 21 déc. 2020 à 20:58, Oliver Cabral Jorge <ol...@gmail.com> a
> écrit :
> >
> > Hey guys, good afternoon.
> >
> > Quick (dumb) question: How can I test a custom plugin made without
> > deploying it to UNOMI server?
> >
> > At this moment I have the maven project, the java classes, blueprint and
> > everything, but my validation is
> > - perform update
> > - compile JAR
> > - deploy on UNOMI dev server
> > - test with dev web site
> > - perform corrections if any
> > - restart all process if necessary
> >
> > Is there a way to test it directly on Eclipse or any other tool and
> perform
> > all tests and validations before deploying?
> > I could not find instructions on the 1.5 manual.
> >
> > Thanks!
> >
> > --
> > ----------------------------------------
> > Oliver Cabral Jorge
> > email: olivercj@gmail.com
> > cel: (41) 9548 1000
> > ----------------------------------------
>
>
--
----------------------------------------
Oliver Cabral Jorge
email: olivercj@gmail.com
cel: (41) 9548 1000
----------------------------------------
Re: How to test plugin code without deploying?
Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,
You can do unit test directly in the plugin folder.
If you want more "concrete" tests, you can do test (with Karaf/Pax Exam). Basically, it bootstraps unomi in the test, you can deploy your plugin and test it.
Regards
JB
> Le 21 déc. 2020 à 20:58, Oliver Cabral Jorge <ol...@gmail.com> a écrit :
>
> Hey guys, good afternoon.
>
> Quick (dumb) question: How can I test a custom plugin made without
> deploying it to UNOMI server?
>
> At this moment I have the maven project, the java classes, blueprint and
> everything, but my validation is
> - perform update
> - compile JAR
> - deploy on UNOMI dev server
> - test with dev web site
> - perform corrections if any
> - restart all process if necessary
>
> Is there a way to test it directly on Eclipse or any other tool and perform
> all tests and validations before deploying?
> I could not find instructions on the 1.5 manual.
>
> Thanks!
>
> --
> ----------------------------------------
> Oliver Cabral Jorge
> email: olivercj@gmail.com
> cel: (41) 9548 1000
> ----------------------------------------