Hi, thank you for helping me :-)
I have also tried to use just FlexTester
<configuration>
<externs>
<extern>FlexTester</extern>
</externs>
</configuration>
[ERROR] C:\Dev\trunk\project\flex\src\main\flex\FlexTester.mxml:[9,-1] Type
was not found o
r was not a compile-time constant: TestRunnerBase.
[ERROR] C:\Dev\trunk\project\flex\src\main\flex\FlexTester.mxml:[16,-1]
Access of undefined
property AllTests.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
This is my FlexTester.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:flexui="flexunit.flexui.*"
layout="absolute"
creationComplete="runAllTests()"
>
<flexui:TestRunnerBase id="testRunner" width="100%" height="100%"/>
<mx:Script>
<![CDATA[
public function runAllTests() : void
{
testRunner.test = AllTests.suite();
testRunner.startTest();
}
]]>
</mx:Script>
</mx:Application>
Any idea?
On Fri, Dec 19, 2008 at 5:53 PM, Marvin Froeder <[email protected]> wrote:
> Take a look on sample here:
>
> http://docs.flex-mojos.info/flex-compiler-mojo/compile-swf-mojo.html#externs
>
> You should declare class name, not source file name.
>
> But, if still not working send your console output to me.
>
>
> VELO
>
>
>
>
> On Fri, Dec 19, 2008 at 2:49 PM, Peter Nicolai Motzfeldt <
> [email protected]> wrote:
>
>> Thanks for the quick response.
>>
>> My build looks like this now, and the FlexTester.mxml is located in
>> src/main/flex:
>>
>> <build>
>> <sourceDirectory>src/main/flex</sourceDirectory>
>> <testSourceDirectory>src/test/flex</testSourceDirectory>
>> <plugins>
>> <plugin>
>> <groupId>info.flex-mojos</groupId>
>> <extensions>true</extensions>
>> <artifactId>flex-compiler-mojo</artifactId>
>> <configuration>
>> <externs>
>> <extern>FlexTester.mxml</extern>
>> </externs>
>> </configuration>
>> <executions>
>> <execution>
>> <goals>
>> <goal>compile-swc</goal>
>> </goals>
>> </execution>
>> </executions>
>> </plugin>
>> <plugins>
>> </build>
>>
>> It still complains about not finding TestRunnerBase, what am I doing
>> wrong?
>>
>> - Peter
>>
>>
>> On Fri, Dec 19, 2008 at 5:04 PM, Marvin Froeder <[email protected]>wrote:
>>
>>> Hi Peter,
>>>
>>> Sure, that is doable:
>>>
>>> http://docs.flex-mojos.info/flex-compiler-mojo/compile-swf-mojo.html#externs
>>>
>>>
>>> VELO
>>>
>>>
>>> On Fri, Dec 19, 2008 at 1:20 PM, Peter Nicolai Motzfeldt <
>>> [email protected]> wrote:
>>>
>>>>
>>>> Hi
>>>>
>>>> Must say this is a great tool, thanks alot. Keep up the good work!
>>>>
>>>> I am testing a swc library and I do not want to add a new project so
>>>> that I can run my tests from eclipse. But rather be able to have a
>>>> TestRunner.mxml file located in the src/main/flex folder.
>>>>
>>>> But then I get an error compiling with maven since it needs flexunit
>>>> classes.
>>>>
>>>> Is there a way building a swc project with maven and specify that I
>>>> want to exclude the TestRunner.mxml file when compiling?
>>>>
>>>> Thanks
>>>>
>>>> - Peter
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---