Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6FAAE2F7 for ; Sat, 8 Dec 2012 00:00:41 +0000 (UTC) Received: (qmail 44070 invoked by uid 500); 8 Dec 2012 00:00:41 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 44022 invoked by uid 500); 8 Dec 2012 00:00:41 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 44011 invoked by uid 99); 8 Dec 2012 00:00:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Dec 2012 00:00:41 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FRT_ADOBE2,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbalsas@gmail.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-la0-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Dec 2012 00:00:34 +0000 Received: by mail-la0-f47.google.com with SMTP id u2so722717lag.6 for ; Fri, 07 Dec 2012 16:00:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=VAPVLReg4+1NOIoVj8De+YXJRaDdn58D3OIFS3k4z+k=; b=Xu9GTvSQ8WpQUrLuYk/QMbgc0gVS/4EqElflnax+QueaBoqIHBEOWKvwoe9qkz/nP1 Q4oEIH39IXb6lZPPyLGqILRuggEWomEPiOL5njeaXTLvEj2S03Jv/W1eHPVNTHuVgdD6 ZvsefUT0wojfdcRQnnsZiaLe2/L4ob7RWMtSKukz7KVp1//rDGfuqJOA5iB7QUSWkx7f bW+Xe9TI7DjQqsRA6ePpvkYsxflUnLJ+Yq76C+MsfETznrbNpS1lWNVlQDZ/jYfEEm0a nEVYWPDDS8TPXQXwjAf/VGpsHGbTwvquDVtGpDze+ERYYJXGoDdGa7D0bSgO3A/ndvwr RMyg== MIME-Version: 1.0 Received: by 10.112.102.5 with SMTP id fk5mr3245898lbb.31.1354924812643; Fri, 07 Dec 2012 16:00:12 -0800 (PST) Received: by 10.112.75.194 with HTTP; Fri, 7 Dec 2012 16:00:12 -0800 (PST) In-Reply-To: References: <149F8129B58B2D418508E63117D9C5419B5B623C01@nambx05.corp.adobe.com> Date: Sat, 8 Dec 2012 01:00:12 +0100 Message-ID: Subject: Re: [Falcon] Unit tests failing From: Chema Balsas To: flex-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d0401fa8b27adf504d04c0489 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0401fa8b27adf504d04c0489 Content-Type: text/plain; charset=ISO-8859-1 I'm not sure the problem is in JUnit but in all the stuff the tests are triggering behind. What Michael proposed (which indeed works) is to append the arguments to any launch configuration created for any test which would be a total nightmare and quite impossible to maintain. As Gordon says, it works fine if the sdk is copied relative to the tests as was before. If it isn't, such as it's happening now, somewhere along the line FLEX_HOME and PLAYERGLOBAL_HOME need to be read. The problem is that when you launch a program in Mac it doesn't get passed your environment, so it ignores whatever is you have on ~/.profile No doubt it's easier to just copy the sdk but if for some reason you don't want to, or want to make it optional, then I don't know if there's another way. 2012/12/8 Alex Harui > > > > On 12/7/12 3:48 PM, "Gordon Smith" wrote: > > > And it should NOT require any voodoo to launch Eclipse, such as a launch > > script. > Agreed > > > > I would be able to tolerate it requiring a one-time setup in the Eclipse > > workspace, but I can't find any place to configure environment variables > > there. > Can this really be possible that there is no place to configure Junit's > runtime environment from within Eclipse? > > > > - Gordon > > > > > > -----Original Message----- > > From: Gordon Smith [mailto:gosmith@adobe.com] > > Sent: Friday, December 07, 2012 3:45 PM > > To: flex-dev@incubator.apache.org > > Subject: RE: [Falcon] Unit tests failing > > > > All unit tests (at least for Falcon) should be zero-configuration. You > open up > > a file like MXMLArrayTagTests.java. You double-click the name of an > individual > > test you want to debug, such as the first one, MXMLArrayTag_empty(), to > select > > it. Then you right-click on it and choose Debug As > JUnit Test from the > > context menu. It should just work. The default debug configuration that > gets > > created for this test needs to be sufficient without any additional > Program > > Arguments or VM Arguments. > > > > - Gordon > > > > -----Original Message----- > > From: Alex Harui [mailto:aharui@adobe.com] > > Sent: Friday, December 07, 2012 3:36 PM > > To: flex-dev@incubator.apache.org > > Subject: Re: [Falcon] Unit tests failing > > > > The copy.sdk target is still in there if you need it. > > > > But first, wow do you use the unit tests from Eclipse? I've never tried > it, I > > always use the command line. Do you set up a run config of some sort? > If you > > set a FLEX_HOME in the config's environment does that work? > > > > Once I understand how you use Eclipse I will try to get it to work. > > > > > > On 12/7/12 3:27 PM, "Gordon Smith" wrote: > > > >> After trying and failing to do any Falcon work today, I'll keep > >> complaining about this. The unit tests are no longer working in > >> Eclipse. I get > >> > >> command line > >> Error: unable to open > >> 'D:\Apache\incubator\flex\falcon\trunk\compiler\generated\dist\sdk\fra > >> meworks\ > >> mxml-2009-manifest.xml'. > >> > >> command line > >> Error: unable to open > >> 'D:\Apache\incubator\flex\falcon\trunk\compiler\generated\dist\sdk\fra > >> meworks\ > >> libs\player\11.1\playerglobal.swc'. > >> > >> This is presumably because the SDK is no longer being copied into a > >> place that the unit tests can find them. The unit tests can't use an > >> environment variable to find them because it is infeasible to specify > >> that environment every time you want to make an Eclipse debug config > for a > >> particular unit test. > >> > >> Is there some way to make this work in Eclipse that I don't know > >> about, so that every JUnit test "just work" without having to > >> customize a run-config or debug-config for it? > >> > >> If not, I will restore some ant targets to do the SDK copying. Alex > >> may not want to use them, but I need to. > >> > >> - Gordon > >> > >> > >> -----Original Message----- > >> From: Gordon Smith > >> Sent: Thursday, December 06, 2012 2:58 PM > >> To: flex-dev@incubator.apache.org > >> Subject: RE: [Falcon] Unit tests failing > >> > >> OK, then I'll stop complaining. > >> > >> - Gordon > >> > >> -----Original Message----- > >> From: Alex Harui [mailto:aharui@adobe.com] > >> Sent: Thursday, December 06, 2012 1:59 PM > >> To: flex-dev@incubator.apache.org > >> Subject: Re: [Falcon] Unit tests failing > >> > >> The versions in compiler/commandline already looked for FLEX_HOME > >> environment variable. > >> > >> > >> On 12/6/12 1:56 PM, "Gordon Smith" wrote: > >> > >>> I should have said Falcon's 'mxmlc' and 'compc' shell scripts. > >>> > >>> - Gordon > >>> > >>> -----Original Message----- > >>> From: Gordon Smith > >>> Sent: Thursday, December 06, 2012 1:55 PM > >>> To: flex-dev@incubator.apache.org > >>> Subject: RE: [Falcon] Unit tests failing > >>> > >>> So, how does Falcon's 'asc' shell script do its job? Did you make it > >>> use an environment variable to find an SDK? > >>> > >>> - Gordon > >>> > >>> -----Original Message----- > >>> From: Alex Harui [mailto:aharui@adobe.com] > >>> Sent: Thursday, December 06, 2012 1:40 PM > >>> To: flex-dev@incubator.apache.org > >>> Subject: Re: [Falcon] Unit tests failing > >>> > >>> > >>> > >>> > >>> On 12/6/12 12:57 PM, "Gordon Smith" wrote: > >>> > >>>> But doesn't it make it impossible to use Falcon's shell scripts, > >>>> which expect to find other things in the SDK using relative paths > >>>> from those shell scripts??? > >>> You mean like the mxmlc and compc scripts? They take a FLEX_HOME > >>> environment variable and seem to be working. > >>>> > >>>> Falcon isn't going to be independent of the SDK in the sense of > >>>> being external to it. The goal is for it to replace the old compiler > >>>> *in* the SDK. I don't want to be polluting an SDK with Falcon until > >>>> it is ready, but it made sense to me to copy whatever SDK you want > >>>> test Falcon with into Falcon's directory, so that everything is > >>>> relative to each other as it will eventually be. > >>>> > >>> I guess I haven't given up on the vision of Falcon being so > >>> independent that it doesn't have to be in every SDK release. For > >>> sure, I am currently working on a "new SDK" and I want Falcon and > >>> FalconJS to work with it. I want to finish the vision of not having > >>> to change Falcon for every version of the SDK. > >>> That would eventually allow the SDK folder to not contain any java > >>> code, and changing SDK versions becomes a matter of changing SWCs and > >>> not JARs. > >>> > >>> And I don't want to eliminate the possibility that someone will take > >>> on the effort to integrate Falcon into an IDE. > >>> > >>> -- > >>> Alex Harui > >>> Flex SDK Team > >>> Adobe Systems, Inc. > >>> http://blogs.adobe.com/aharui > >>> > >> > >> -- > >> Alex Harui > >> Flex SDK Team > >> Adobe Systems, Inc. > >> http://blogs.adobe.com/aharui > >> > > > > -- > > Alex Harui > > Flex SDK Team > > Adobe Systems, Inc. > > http://blogs.adobe.com/aharui > > > > -- > Alex Harui > Flex SDK Team > Adobe Systems, Inc. > http://blogs.adobe.com/aharui > > --f46d0401fa8b27adf504d04c0489--