I've been working on getting our flex unit tests to be run during
maven builds and I had success with getting that working.  However,
when I looked in the POM I was using i was using an older version of
mojo (1.0).  Here's the snippet:

<groupId>info.rvin.mojo</groupId>
<artifactId>flex-compiler-mojo</artifactId>
<version>1.0</version>
<extensions>true</extensions>

But I noticed our project has upgraded to 2.0M10 and no longer builds
and executes the TestRunner file.

I get the following error:
[ERROR] C:\Projects\target\test-classes\TestRunner.mxml:[-1,-1] Unable
to locate specified base class
'info.flexmojos.unitestingsupport.TestApplication' for component class
'TestRunner'.

Here's what my plugins entry in the POM looks like:

<groupId>info.flex-mojos</groupId>
<artifactId>flex-compiler-mojo</artifactId>
<version>2.0M10</version>
<extensions>true</extensions>

Any ideas?

PS Generated TestRunner.mxml:
<?xml version="1.0" encoding="utf-8"?>
<!--can't use velocity, got:
java.io.InvalidClassException:
org.apache.velocity.runtime.parser.node.ASTprocess; class invalid for
deserialization-->
<unitestingsupport:TestApplication
        xmlns:mx="http://www.adobe.com/2006/mxml";
        xmlns:unitestingsupport="info.flexmojos.unitestingsupport.*"
        layout="absolute"
        initialize="init()"
        port="13539"
        >

        <mx:Script>
                <![CDATA[

import com.ctc.fema.util.ValidatePhoneTest;


                        private function init():void {
addTest( ValidatePhoneTest);

                        }
                ]]>
        </mx:Script>

</unitestingsupport:TestApplication>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to