Does Mockolate use something like asmock's Floxy/Flemit libraries to create
code-generated mocks? If so, that's likely the reason it fails. Code
generation in Flex, compared to other languages like Java, is extremely
slow. A project I recently worked on had ~4,500 unit tests, some ~1,700 of
which used some amount of code generation. We found that we had to increase
the test timeout in order to get a successful build. I'm not sure what the
correct configuration parameter is in FlexMojos, though I'd wager it's in
the documentation. For FlexMojos 3.9, which we were using, we did this:

            <plugin>
                <groupId>org.sonatype.flexmojos</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    ...
                    <testTimeout>30000</testTimeout>
                </configuration>
            <plugin>
We started with a test timeout of 20000, and as we get even more complicated
tests we had to increase it again to 30000. The speed of the hardware
running the tests also comes into play, here. We used JetBrains TeamCity for
CI, and some of our build agents were faster than others. The faster agents
were able to run successfully with a lower timeout, but the slower ones
needed it to be longer or the build would randomly fail.

Hope this helps,
Bryan Turner

On Wed, Oct 5, 2011 at 9:00 AM, velo <[email protected]> wrote:

> > Why is this happening?   Thanks!
>
> Can really tell you why, since I don't know your variables, but,
> usually, mean a test is running for a long time and Java side did not
> got any evidence Flex side still up and alive.  Now, what is causing
> that I can't tell.  May be mvn -X will print some information that
> will help you to debug.
>
> --
> 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
>
> http://flexmojos.sonatype.org/
>

-- 
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

http://flexmojos.sonatype.org/

Reply via email to