Yep, I've been trying to debug that.

In parallel I've also been trying to do the same for Squiggly, and
while I did get a unit test to run (with some tweaks which I'll commit
when I'm done), now the usual ant build script fails for Squiggly.
That's because now it's also parsing the unit test (which is in
Squiggly\main\SpellingUIEx\src\tests\com\adobe\linguistics\spelling\FLEX_34717_Tests.as),
and it (naturally) can't find the flexunit functions and classes.

My question is: how does the apache project compile, despite there
being a unit test in
frameworks\projects\apache\src\tests\promises\cases\PromisesBasicTests.as?

I looked in the build files, and couldn't figure out why it doesn't
fail, i.e. where it includes flexunit as a compile library, or where
it explicitly excludes the classes in src/tests.

Any pointers?

On 7 January 2015 at 10:57, Erik de Bruin <e...@ixsoftware.nl> wrote:
> If you go to:
>
> http://apacheflexbuild.cloudapp.net:8080/job/flex-sdk_test/
>
> Click on 'Latest Test Result', and expand one of the failing tests, it
> shows you the stack trace.
>
> EdB
>
>
>
> On Tue, Jan 6, 2015 at 7:04 PM, Mihai Chira <mih...@apache.org> wrote:
>> I've got a problem running FLEX_34625_Tests.as. The test report only shows 
>> me:
>>
>> <error message="Error #1009"
>> type="tests.spark.skins.spark::FLEX_34625_Tests.test_focus_skin_with_NaN_focus_thickness"><![CDATA[]]></error>
>>
>> Does anyone know how I can configure the test runner to show the
>> entire stack trace of the error?
>> Thanks.
>>
>> On 6 January 2015 at 17:58,  <mih...@apache.org> wrote:
>>> FLEX-34711 Using the pattern defined for the apache project, now we're 
>>> running the unit tests in the spark project as well.
>>>
>>>
>>> Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
>>> Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/6dadf6dd
>>> Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/6dadf6dd
>>> Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/6dadf6dd
>>>
>>> Branch: refs/heads/develop
>>> Commit: 6dadf6ddf7fb883ac50f5c9c07ff23095875c754
>>> Parents: cf0e4d0
>>> Author: Mihai Chira <mih...@apache.org>
>>> Authored: Tue Jan 6 17:57:25 2015 +0000
>>> Committer: Mihai Chira <mih...@apache.org>
>>> Committed: Tue Jan 6 17:57:25 2015 +0000
>>>
>>> ----------------------------------------------------------------------
>>>  frameworks/build.xml                 | 6 +++++-
>>>  frameworks/projects/apache/build.xml | 2 +-
>>>  frameworks/projects/spark/build.xml  | 6 ++++++
>>>  3 files changed, 12 insertions(+), 2 deletions(-)
>>> ----------------------------------------------------------------------
>>>
>>>
>>> http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/6dadf6dd/frameworks/build.xml
>>> ----------------------------------------------------------------------
>>> diff --git a/frameworks/build.xml b/frameworks/build.xml
>>> index f44f73a..14f5628 100644
>>> --- a/frameworks/build.xml
>>> +++ b/frameworks/build.xml
>>> @@ -139,6 +139,7 @@
>>>          <delete dir="${FLEX_HOME}/test-reports"/>
>>>
>>>          <antcall target="apache-test"/>
>>> +        <antcall target="spark-test"/>
>>>      </target>
>>>
>>>         <target name="flex-config" depends="playerglobal-setswfversion" 
>>> description="Copy the flex/air/airmobile config templates to 
>>> flex/air/airmobile-config.xml and inject version numbers">
>>> @@ -515,7 +516,10 @@
>>>      <target name="apache-test" description="Tests for 'apache' project">
>>>          <ant dir="${basedir}/projects/apache" target="test"/>
>>>      </target>
>>> -
>>> +    <target name="spark-test" description="Tests for 'spark' project">
>>> +        <ant dir="${basedir}/projects/spark" target="test"/>
>>> +    </target>
>>> +
>>>      <target name="experimental" description="Clean build of 
>>> experimental.swc">
>>>          <ant dir="${basedir}/projects/experimental"/>
>>>      </target>
>>>
>>> http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/6dadf6dd/frameworks/projects/apache/build.xml
>>> ----------------------------------------------------------------------
>>> diff --git a/frameworks/projects/apache/build.xml 
>>> b/frameworks/projects/apache/build.xml
>>> index 5e81874..c41c671 100644
>>> --- a/frameworks/projects/apache/build.xml
>>> +++ b/frameworks/projects/apache/build.xml
>>> @@ -188,7 +188,7 @@
>>>                 </compc>
>>>         </target>
>>>
>>> -  <target name="test" description="Runs the FlexUnit tests for the 
>>> 'apache' project">
>>> +  <target name="test" description="Runs the FlexUnit tests for this 
>>> project">
>>>      <ant antfile="${FLEX_HOME}/flexunit-tests.xml">
>>>        <property name="project.root" value="${basedir}"/>
>>>      </ant>
>>>
>>> http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/6dadf6dd/frameworks/projects/spark/build.xml
>>> ----------------------------------------------------------------------
>>> diff --git a/frameworks/projects/spark/build.xml 
>>> b/frameworks/projects/spark/build.xml
>>> index 66ced11..5e7b73c 100644
>>> --- a/frameworks/projects/spark/build.xml
>>> +++ b/frameworks/projects/spark/build.xml
>>> @@ -292,6 +292,12 @@
>>>          <delete file="${basedir}/bundles/en_US/packages.dita" 
>>> failonerror="false"/>
>>>      </target>
>>>
>>> +    <target name="test" description="Runs the FlexUnit tests for this 
>>> project">
>>> +        <ant antfile="${FLEX_HOME}/flexunit-tests.xml">
>>> +            <property name="project.root" value="${basedir}"/>
>>> +        </ant>
>>> +    </target>
>>> +
>>>  </project>
>>>
>>>
>>>
>
>
>
> --
> Ix Multimedia Software
>
> Jan Luykenstraat 27
> 3521 VB Utrecht
>
> T. 06-51952295
> I. www.ixsoftware.nl

Reply via email to