hi all,

I've downloaded and installed (with install:install-file) FlexUnit 4.1
in my local repository. After, I've mavenized a Flex project with this
simple test function :

[code]
public function ajouter(a:Number, b:Number):Number
{
        return a + b;
}
[/code]

And my test :

[code]
[Test]
public function testAjouter():void
{
        Assert.assertEquals(11, abc.ajouter(5, 8));
}
[/code]

With Flash Builder 4.5, this test fails (therefore it's OK). But with
Maven, it returns an error instead of failure like FB4.

[INFO] Tests run: 1, Failures: 0, Errors: 1, Time Elapsed: 0 sec

In debug mode with -X option, I see a failure message :

[DEBUG] <testsuite errors='0' failures='1' name='fr.sim.TestAbc'
tests='1' time='0' ><testcase name="testAjouter" time="0">
  <failure message="expected:&lt;11> but was:&lt;13>"
type="fr.sim.TestAbc">expected:&lt;11&gt; but was:&lt;13&gt;

So display bug or brain bug ?

Thanks,

Olivier

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