From dev-return-167095-archive-asf-public=cust-asf.ponee.io@commons.apache.org Tue Apr 24 21:38:13 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 7C6BE180671 for ; Tue, 24 Apr 2018 21:38:12 +0200 (CEST) Received: (qmail 90730 invoked by uid 500); 24 Apr 2018 19:38:11 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 90715 invoked by uid 99); 24 Apr 2018 19:38:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2018 19:38:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2980C1A229C for ; Tue, 24 Apr 2018 19:38:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1 X-Spam-Level: * X-Spam-Status: No, score=1 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id E2e8J0Ua_iel for ; Tue, 24 Apr 2018 19:38:08 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 111145F503 for ; Tue, 24 Apr 2018 19:38:08 +0000 (UTC) Received: from [192.168.178.20] ([88.73.118.95]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.183]) with ESMTPSA (Nemesis) id 0M2u5m-1eIXOr2FZW-00siAC for ; Tue, 24 Apr 2018 21:38:07 +0200 Subject: Re: [compress] Need Help With PAX Exam Tests To: dev@commons.apache.org References: <874lk1ekrq.fsf@v45346.1blu.de> From: Oliver Heger Openpgp: preference=signencrypt Message-ID: <83289662-1edc-496b-e653-252dd8c1551e@oliver-heger.de> Date: Tue, 24 Apr 2018 21:38:19 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <874lk1ekrq.fsf@v45346.1blu.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:NPtbBoXfgNQFyU5orN3fX+1k86sRgQFwE+YieocopexVXHBnxk9 mVHa0NLE+/LHmAzoLAqB4C5EpA34YfUkVNIXJqi9m19UlA3out/4Jn2N7Q4sQgQbujryDBj yf8cL+pdKjJUaRQ599Lsakm+7KOcF/d2Fibkxq0PjuPEpxJn6csSrGqhE2Ra2pm2KJUpWaK 9+Vzb7B+tYE45zRyybn3Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:YPsjttJ2KBE=:NmJX7GL7UhbjDPau8Z8mLz 05B5qf4mLG0JveS++S920NyJUMrSV/iSxoFaYOYk0V51k5kblh1KQFuUF4uSaAHlcacaL2n6G ojM2s8b6VdS0+FfWh/yF4Mf9hoIJUD6f5fDbESHJGKJpIRsebc2psFFWILze00+fFVvVsBFWB XRhyJVhObAKXb7TsXbMRx5DTAvUvUD6Xy4qfmXBuvHzvNU9e6Jp++6X9nwovmCp36HdNMTQRm e3g7Ocu1tDXPYLAYPUQh5SuEYKlC32sMG3ifKoeiVaeU/JRAMibUg0xHsJRKhGhxbZIiRCukC cTJSSQHjyY0kCWC/ramrmuEIQG3IHvs9DresQySL1B8oACbKbQkJoYZ9nRZRbkWx6WjeniMhU 780tG0hYtJVB0UCghHJRIeNU0UEHcDjcbDPGRHjW4tAl4yvSNkd4Df+Fw4G/xQNqttqkmI5jQ uydciZtkAiZlnEFMP/617hyIx+HQsHsR0DqSLkMsgJj5GUrX2pXkZvj5FskWp0EDGlrgr0Ibq BFWAXU8CRztMhgH8szueShkkg1sCuurA2ZM8C5wIs/yW+9Vliq33olhT+ONBEMA+QLBfxHOz5 POq6mpXIcpMAOlStomJ4nUJaZaUk11nnWM4ryNxJaQTyeB3Z5NnvP+za47zeF4KCuFl9FBOZk xKMgpa5fNssxQszI02lwXM6Q8FeFvAowkfeAAFQ6Mo1/7u5/xHjHlUOSK6e15E9y78BVBSjPz ybMS+NFfZmkYewls6m+aCMeF4sgNdIbiH2OZj7kRraKtxee66kiGE+x8Y/s= Hi, Am 23.04.2018 um 22:21 schrieb Stefan Bodewig: > Hi all > > I'm trying to resolve COMPRESS-443 which talks about having a regression > test that fails if we break the OSGi bundle again (has already happened > three times duing the life of Compress so far). But unfortunately I'm > getting stuck with my limited Maven and even more limited PAX Exam Fu. > > You can see what I've tried in the COMPRESS-443 branch: > https://github.com/apache/commons-compress/tree/COMPRESS-443 > > The OsgiITest I've added loads the SNAPSHOT version I've installed into > my local repo last and doen't care about the current classes and POM, > which is quite understandable as the bundle hasn't even been built when > I try to run the test. > > Do I have to create a separate maven project just for the tests? If so, > I'll probably just drop the very idea as turning compress into a reactor > build just for a single test case feels wrong. > > I really hope I am missing something obvious. This has been true often > enough that I'm optimisitic :-) at work we used PaxExam to test OSGi-based applications consisting of multiple modules. Here the (integration) tests have always been in a separate module as they require a more complex setup. To have only a single module, maybe it would work to run the test in the verify phase and reference the artifact via PaxExam's streamBundle() option directly from the file system? We could also think about having a separate Commons-internal project that contains OSGi-related tests. Such tests are useful for most of our components, and we could even test whether they collaborate correctly in their current versions. Well, this is certainly not trivial. Oliver > > Stefan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org