The following test classes are not included in any of the test suites, and
consequently don't run in the build. I generated this list by comparing the
output file of the build (TEST-org.mifos.application.ApplicationTestSuite.xml)
with all the Testcase files present in the test folder.
ActivityGeneratorTest.java
AddReportTest.java
BirtReportsUploadActionTest.java
CollectionSheetReportParametersTest.java
CollectionUtilsTest.java
ConfigurationPersistenceTest.java
DetailedAgingPortfolioReportParametersTest.java
LoanAccountActionFormTest.java
LoanCalculationTest.java
LoanPrdPersistenceTest.java
LookUpValueEntityTest.java
MifosSelectTagTest.java
NumberUtilsTest.java
PPICalculatorTest.java
PPIPersistenceTest.java
ReportsCategoryActionTest.java
ReportsDataServiceTest.java
SelectionItemTest.java
TestAddressMapper.java
TestAdminDocAccStateMixPersistence.java
TestAdminDocumentPersistence.java
TestBirtAdminDocumentUploadAction.java
TestCenterMapper.java
TestDataExchanger.java
TestFeeActionForm.java
TestGeneralLedgerCode.java
TestLoanDisbursmentAction.java
TestLoanSummaryEntity.java
TestMeetingMapper.java
TestMifosDataExchange.java
TestSystemInfoAction.java
Many of them are from MigrationTestSuite and AdminDocumentTestSuite, which are
not included anywhere.
Platform: All, OS: All
Created an attachment (id=581)
Python script to guess which testcases aren't part of the build
The above Python script finds all files named "Test*.java" or "*Test.java" but
not containing the word "Suite", in your "test" folder and sees if they are all
present in the build report XML file.
(It ignores some of the utility classes which match that pattern)
Requires: ElementTree (http://effbot.org/zone/element-index.htm)
Usage:
1) Open the file and set MIFOS_TEST_DIR to the path to your Mifos "test" folder
2) Set PATH_TO_TEST_SUITE_REPORT_XML to the path to the build XML report
(usually (mifos dir +"dist/TEST-org.mifos.application.ApplicationTestSuite.xml")
3) python findtests.py
Prints the filenames of the missing testcases to the console
Triage comments - we can figure out why these are not included in the test suite
after v1.1.
unit tests have been reworked since this was reported. closing this issue.