Using IntelliJ In office, I generated ipr files (but this creates a new project per CN-project..any better way to have all modules in one place)
after adding this to build.gradle apply plugin: 'idea' ./gradlew idea Test works in office ! What is the concept of component-test? Are they supposed to be a module under each of the micro service for Test code/artifacts? I was expecting tests under src/test ( component-test/src/main/java/io/mifos/office/TestEmployee.java) Only some of the project have gradle *test* task defined (are we not having test yet, or is component-test the area for Tests?) ./gradlew tasks --all /thanks On Mon, Oct 2, 2017 at 1:52 PM, Myrle Krantz <[email protected]> wrote: > 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.TenantApplicationSecurityEnvir > onmentTestRule.before(TenantApplicationSecurityEnvir > onmentTestRule.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 >
