Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 844A5200D11 for ; Mon, 2 Oct 2017 20:54:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 828CC1609EF; Mon, 2 Oct 2017 18:54:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C70D01609C0 for ; Mon, 2 Oct 2017 20:54:13 +0200 (CEST) Received: (qmail 13348 invoked by uid 500); 2 Oct 2017 18:54:13 -0000 Mailing-List: contact dev-help@fineract.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@fineract.apache.org Delivered-To: mailing list dev@fineract.apache.org Received: (qmail 13336 invoked by uid 99); 2 Oct 2017 18:54:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2017 18:54:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id EBFAFDE83E for ; Mon, 2 Oct 2017 18:54:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id UY1vwtmuj8pV for ; Mon, 2 Oct 2017 18:54:09 +0000 (UTC) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E0BCB61023 for ; Mon, 2 Oct 2017 18:54:08 +0000 (UTC) Received: by mail-qk0-f181.google.com with SMTP id r64so5937678qkc.1 for ; Mon, 02 Oct 2017 11:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=XxATHh+5OncHlHQd3stRvzRA9akhw9OwuVHLymYqJr0=; b=A3W/H0x1M38X+UXB9GWmuk2xkxR401O3iS1xpie3unl3tUTF+q4e+++UvaVRBL5Hqo RugB2w3cS4EFaTPFn974KkvJGggN/osaRh3Zkdm6pYWHzweFs0CMzxA2u/+H98ndXLQ6 ZMOffBotyEJJ1VX1UPCYX5qtA0GO09jaMGN+/Ra0bzH6OT7tgCj5oEmqDIPOoTUdXbOJ yD/zX26eWtsSsqDU2eK1boHEgQqQ2tBM+TbMsClRMt5vaJyXc6OuPV6oe6hLHJ1mMZfF 6CjQXACOGfPORqEjVnwJP4n8Md47Dv78cefqPt/Lzuq+KLsY/cqdTsveDzmxEVO2bwIW 2JYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=XxATHh+5OncHlHQd3stRvzRA9akhw9OwuVHLymYqJr0=; b=d777namy68mFGkbeVarfA3O6je0QbKOAEje/+Bz+s9UKpOcF6t/LriMre+EKIIkBaT jZWi1gBk1MfXNXdetp42Vebzn5PlpMCzjnyfwkbdvnCyd2wU5SJc9qEpv4JXpB/u/xv+ 3Dd8SUa5Tiq4zlMdrhtOxlFwENMoqpJZjT31Y0qJXPGY+QkKDZ+F0MSLx89pKDMI448h 9IPZ4qOYZALR6oU/taRcnFCE1TfclI/j4QCTVeBAsAJ7KB4WfnGalyK1EYsX9OEVE5Pw 5EJ25e4FzJIM3IfdOrHFKbinvefzXfUa8T2ZGtz0iEP03qdd8iyuBPA9p/iMIM8CEqRr wgHA== X-Gm-Message-State: AMCzsaUtJBXG8cT6KQY0b4qbfIMb81abItZ/B6Q388D9wlmDyrkYVO7v uyDbu/JxXi5VyH60ndRwOt8V5uoDs0Y3/ZawDDFLSA== X-Google-Smtp-Source: AOwi7QAiMvgQROGf90kTf2qkykxyH0KRMgi524gAUKOeU4s4qGVQdIE1BMNPywi2pTJHKy5l0IQ9AL/zoziDpxoSN5o= X-Received: by 10.55.90.199 with SMTP id o190mr17488302qkb.180.1506970441257; Mon, 02 Oct 2017 11:54:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.43.135 with HTTP; Mon, 2 Oct 2017 11:54:00 -0700 (PDT) In-Reply-To: References: From: Sijo Cherian Date: Mon, 2 Oct 2017 14:54:00 -0400 Message-ID: Subject: Re: fineract-CN running Tests? To: dev@fineract.apache.org Content-Type: multipart/alternative; boundary="001a114e8accd695ab055a94e572" archived-at: Mon, 02 Oct 2017 18:54:14 -0000 --001a114e8accd695ab055a94e572 Content-Type: text/plain; charset="UTF-8" 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 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 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 > --001a114e8accd695ab055a94e572--