07-22-2009 06:13 AM
From where i can download entire BUnit?
From this url "http://sourceforge.net/projects/b-unittesting/" i downloaded zip file which contains only src folder. how to make use of that...
07-22-2009 06:17 AM
the source contains everything you need.
there is no magic
contains an application with screen for showing results including:
is the class they test
contains the test code
show how the call the test
contains "unittesting framework" classes
06-24-2010 05:05 AM
Just copy bunit source code to your project
(I prefer to create a new source folder named test for it.)
Have a look at jfisher.logic.test.unittestApp and run this class (it contains a main() function) You will know how to test your application immediately,
- DistanceConversion is a sample class
- DistanceConversionTest is the testing class.
06-24-2010 05:16 AM
There is one problem :
In project there are 2 main() method:
- main() of bunit
- main() of our application.
Is there any quick way to choose which main() method is executed ?
08-25-2010 07:19 AM
Yes there is.
You can define an Alternate Entry Point in the application descriptor xml and add an application argument (I used "bunit" for example).
Then, in the main() of my application I have the following code:
Now, on the blackberry home screen I have an additional application icon for unit tests.
10-14-2010 09:06 AM