Message Boards

A unit test framework for portlets

Derek Li, modified 10 Years ago.

A unit test framework for portlets

New Member Posts: 14 Join Date: 4/28/11 Recent Posts
Hi guys,

I'm working on a unit test framework for portlets. It's a open-source project. I have put my code here in GitHub:

https://github.com/druglee/portlettester

And here is the sample project of how to use this framework:

https://github.com/druglee/portlettester-sample

Please try it if you are interested. Any feedback or comment will be very much appreciated!

Derek
Derek Li, modified 10 Years ago.

RE: A unit test framework for portlets

New Member Posts: 14 Join Date: 4/28/11 Recent Posts
No one is interested?
Derek Li, modified 10 Years ago.

RE: A unit test framework for portlets

New Member Posts: 14 Join Date: 4/28/11 Recent Posts
Hi guys, I just publilsh a release for this PortletTester. I'm still working on the wiki page. During this time, please refer to the portlettest-sample project to see how this framework works. And what's more, your feedback is absolutely important to me and to this project. I'm really looking forward to you comments. Thanks in advance!
Derek Li, modified 10 Years ago.

RE: A unit test framework for portlets

New Member Posts: 14 Join Date: 4/28/11 Recent Posts
Latest update about PortletTester: I have just finished the wiki page of the framework. It shows how PortletTester works in a nutshell. Besides, I'm working on submitting the framework to Maven's Central Repository, which will allow you to use PortletTester even easier! Enjoy!
Derek Li, modified 10 Years ago.

RE: A unit test framework for portlets

New Member Posts: 14 Join Date: 4/28/11 Recent Posts
Now PortletTester is in the Maven Central Repository. So just simply add a dependence and you will be allset:

groupId: com.portletguru
artifactId: portlettester

Enjoy!!

PS: Any feedback and suggestion will be very much appreciated! Thanks in advance!
thumbnail
Khiem Thien Tran, modified 9 Years ago.

RE: A unit test framework for portlets

New Member Posts: 2 Join Date: 5/22/14 Recent Posts
Thanks for your great effort Derek!
Your PortletTester is really the thing we need to test portlet class's functions. It saves us a lot of time to prepare the context for running test case.

Just one more thing, your groupId: "com.portletguru" (also in the namespace) does not look good, actually. You should have plan to change it to have a more professional name. This is my own opinion.

Anyway, thanks for your sharing. You're very kind.
thumbnail
Freya Haynes, modified 9 Years ago.

RE: A unit test framework for portlets

New Member Posts: 6 Join Date: 7/10/14 Recent Posts
Sorry to ask again. I'm just new here and would like to try your portlet. However, I don't know where to find it.