Hi Sijo,

Which IDE are you using?  I'm using IntelliJ.  In all honesty, I never
run the component tests from the commandline and I don't know if it's
possible.  I sometimes have trouble in initialize when running from
the IDE, because it occasionally messes up and doesn't find the
migrations, but based on your "Migrating schema" message, that's not
the problem.  It's clearly finding the migrations.

Have you tried running the tests on a service with less dependencies?
For example office?  Do you get the same result?

Best Regards,
Myrle


On Mon, Oct 2, 2017 at 7:28 PM, Sijo Cherian <[email protected]> wrote:
> Hi All,
>
> I am able to run tests in say core/api but not in non-core projects.
> What is the right way to run fineract-CN Tests in higher level projects?
> Are there some precondition /startup needed?
>
> Running test in deposit-account-management/component-test
> *On running from IDE  *TestAccrual.shouldAccrueInterest
> ...
> spring boot seem to starup fine
> After
> 13:10:28.097 [async-processor-1] INFO  o.f.core.internal.command.DbMigrate
> - Migrating schema `cleopatra178961652` to version 4 - add unique
> constraint charges
> ...
>
> 13:10:57.370 [main] INFO  event-recorder-logger -* Waited 30004
> milliseconds*, and event initialize with payload 1 wasn't observed
>
> java.lang.IllegalStateException: Initialize didn't complete.
> at
> io.mifos.anubis.test.v1.TenantApplicationSecurityEnvironmentTestRule.before(TenantApplicationSecurityEnvironmentTestRule.java:86)
>
>
> and *How to run test from Terminal*
> cd deposit-account-management/component-test
> gradle -Dtest.single=TestAccrual test
>   doesn't seem to find the test since code is in src/main/java
>
>
> Any pointers on event initialize or how command-logger works, or how
> embedded Cassandra/Mysql starts up in Test
> is much appreciated.
>
> Many thanks
> /sijo

Reply via email to