Hi,

I would like to know if it is possible that Unit tests become just
that, unit tests.

It would be great if there was a policy in place which forced
developers to setup and destroy their dependencies per testSuite /
case.
This way not only will the cascading test dependency be resolved, but
it will eliminate the fragility of the current ApplicationTestSuite.

There is the excellent TestObjectFactory which enables creation and
deletion / cleaup of TestMocks. Another great thing about it is you
can
start deducing relational relationships. Well thats what I find.

Cheers,
Dion

On Jan 24, 2008 5:23 PM, Van Mittal-Henkle <[EMAIL PROTECTED]> wrote:
> Hi Soham,
>
> > I would like to just run a test suite e.g. LoanTestSuite.java (just
> > like fasttests). How can I do this or is it even doable, perhaps with
> > the proper sequence of tests? Currently when I run TestLoanBO (from
> > eclipse) I see errors (trace attached).
>
> The main thing to make sure you do before running an individual test in
> eclipse is to run the build_test_db ant target to make sure the test
> database is in a good state.  Try that and see if it helps.
>
> > I am also seeing the following errros in the
> > lastes rev
> > run_test:
> >      [echo] Using database: test
> >     [junit] Running org.mifos.application.ApplicationTestSuite
> >     [junit]   Unexpected method call getAccount(1):
> >     [junit]     getAccount(2): expected: 1, actual: 0)
> >     [junit]   Expectation failure on verify:
> >     [junit]     getAccount(2): expected: 1, actual: 0)
> >     [junit]   Expectation failure on verify:
> >     [junit]     getAccount(4): expected: 1, actual: 0)
>
> Revision 12272 contains a fix which may resolve this issue.  Please try
> updating in svn and see if the errors above are gone or not.
>
> Cheers,
> --Van
>
>
>
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED] On Behalf Of
> >> Ofer Matan Sent: Wednesday, January 23, 2008 7:11 AM
> >> To: 'Developer'
> >> Subject: Re: [Mifos-developer] build failing
> >>
> >> I have not resolved or worked around it yet. I have identified that
> >> revision 12257 breaks it (12256 works)  which make sense since the
> >> file with the test that failed was changed in that revision:
> >>
> >> /trunk/mifos/test/org/mifos/application/reports/business/servic
> >> e/CollectionS heetServiceTest.java (12257)
> >>
> >> I am running on Ubuntu 7.10
> >>
> >> -Ofer
> >
> > Thanks for you help
> > -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/
>

-------------------------------------------------------------------------
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/

Reply via email to