Please ignore this email for now. After some scrubbing I was able to run the unit tests from eclipse and they passed... now will be running the whole suite with the latest code, and if things pass will send a patch for review. thanks
_____ From: Soham Dhakal [mailto:[EMAIL PROTECTED] Sent: Sunday, January 27, 2008 5:34 PM To: 'Developer' Subject: Questions related to Tests failing and adding new tests - adding a new feature Hi all, I am having a real tough time trying to create new test for a simple functionality i am adding. Bascially the functionality allows user to define a new type of interest calculation called Declining Balance - Equal Principal. This means that the total principal is divided into equal installments and interest is calculated for the remaining principal for the number of days in question. For details of this feature please see http://www.mifos.org/developers/wiki/DecliningBalanceInterestCalculationWith EqualPrincipalInstallment I have added code to handle the functionality (included in a patch with this email). In order to test this I tried to add a test case to existing tests (lets start with TestLoanBo.java). Since I am not too familiar with the whole testing mechanism in mifos i just copied an existing test from TestLoanBO.java and changed it accordingly e.g public void testCreateLoanAccountWithDecliningInterestNoGracePeriod But when i run my tests i get run errors about duplicate client names etc.. but i see that there is another test using the same parameters (public void testCreateLoanAccountWithDecliningInterestPrincipalDueOnLastInstallment) to set up and run and that passes? So i removed my test cases, updated with the latest revision and ran tests and see a lot of failures and errors. I thought i cleared everything including the database but i see a lot of errors related to duplicate information (customer information etc).. Even removing all my changes i still see those failures (result attached with the email) Is there some sort of cache i need to clear? Finally, since there is a deadline of Feb 1st approaching to get the code in, I was hoping someone could volunteer to help me with this, and I can perhaps communicate more effectively/quickly to get things resolved. Thanks Soham
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
