filters without AlwaysFail

2 views
Skip to first unread message

Logan Allred

unread,
Sep 16, 2009, 4:30:57 AM9/16/09
to Antennae Discussion
We are converting an existing project to use antennae, but our tests
were failing because we have a few files that match the Test*.as or
*Test.as pattern but they are not either FlexUnit test files (some
manual GUI test files or test data generators), or they are special
integration tests for special scenarios that we run manually because
they require a server and machine-specific configuration.

So we created a flexunit.filters file to exclude these files, but now
our build always fails with:
[echo] There was 1 failure:
[echo] 1) testFail (FlexUnitAllTests.as$297::AlwaysFail)
[echo] message: A filter file is in use, all tests may not have
been run.

I looked through the source and noticed that if you use a filter, the
build will always fail. I can see the logic of wanting to protect
against accidentally running a subset of tests, but in our case, there
aren't real unit tests that we run on every build.

It seems our only choice is build our own special deployment of
antennae without this behavior, or rename all of our non-FlexUnit
Test*.as and *Test.as files to something else.

Am I understanding this correctly?

thanks,
Logan

Daniel Rinehart

unread,
Sep 16, 2009, 11:54:11 AM9/16/09
to antennae-...@googlegroups.com
Logan,

At this point the code is setup to always include the failing test to
prevent the condition mentioned. It should be easy to add a command
line option to the test suite generator could exclude the always
failing test for this scenario. I'll look into that tonight.

-- Daniel R. <dan...@neophi.com> [http://danielr.neophi.com/]

Daniel Rinehart

unread,
Sep 16, 2009, 11:02:34 PM9/16/09
to antennae-...@googlegroups.com
I just posted Antennae 1.2.3 which includes a long forgotten fix that
never got released along with an update to support disabling the
AlwaysFail test. This is controlled by a new property that can be
changed either on a per project basis or in build-user.properties.
Full release notes can be found at:

http://code.google.com/p/antennae/wiki/Antennae1dot2dot3

Please let me know if you run into any issues.

Logan Allred

unread,
Sep 17, 2009, 12:23:52 AM9/17/09
to antennae-...@googlegroups.com
Thanks! I will try it out tomorrow.

Logan

Reply all
Reply to author
Forward
0 new messages