gabrial11392 / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

Start writing unit tests #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We should start writing unit tests and figure out how to test GWTP. After 
testing a couple of classes, the first step should be to enter an issue for 
each class on which we have to write a unit test.

Original issue reported on code.google.com by philippe.beaudoin on 28 Mar 2010 at 5:56

GoogleCodeExporter commented 9 years ago
A excellent source of information on testing:
http://code.google.com/webtoolkit/articles/testing_methodologies_using_gwt.html

Original comment by philippe.beaudoin on 28 Mar 2010 at 6:12

GoogleCodeExporter commented 9 years ago
Simple introduction to JUnit testing:
http://www.vogella.de/articles/JUnit/article.html

Original comment by philippe.beaudoin on 28 Mar 2010 at 6:33

GoogleCodeExporter commented 9 years ago
Google testing blog:
http://googletesting.blogspot.com/

------------
MOCK OBJECTS

EasyMock:
http://easymock.org/

Mockito:
http://code.google.com/p/mockito/

JMock:
http://www.jmock.org/

Google Testing blog post on mock objects:
http://googletesting.blogspot.com/2009/01/tott-use-easymock.html

I hesitate between EasyMock and Mockito. This last one seems to be very active 
right 
now, it's tempting.

-------------
DEPENDENCY INJECTION AND TESTING

GuiceBerry looks like a good way to mix dependency injection and testing. 
Although it 
is meant to be used for integration testing, I feel like it could lead to very 
clean 
unit tests, or tests that would span all the "integration" test hierarchy.
http://code.google.com/p/guiceberry/

Article on guiceberry:
http://googletesting.blogspot.com/2008_08_01_archive.html

An alternative way to use Guice + JUnit is discussed here:
http://buildwithoutboundaries.blogspot.com/2007/12/synergy-between-guice-easymoc
k-
and.html

Original comment by philippe.beaudoin on 28 Mar 2010 at 11:59

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 30 Mar 2010 at 9:50

GoogleCodeExporter commented 9 years ago
Started, the framework is fairly well set-up. A lot more tests are needed 
though.

Original comment by philippe.beaudoin on 30 Mar 2010 at 9:51

GoogleCodeExporter commented 9 years ago
Can someone point me to a sample on how to setup a basic unit testing framework 
for gwtp? I am using it heavily in my project and looking into unit test 
framewoks. I did go thru wiki for gwtp but it was not that useful.

Original comment by bhupesh...@gmail.com on 20 Apr 2012 at 4:08