Empty test suite hangs the build

5 views
Skip to first unread message

Logan Allred

unread,
Sep 28, 2009, 11:04:32 AM9/28/09
to antennae-...@googlegroups.com
It seems that if the AllTestsFileGenerator can't find any eligible
classes, you end up with an empty test suite. When I run this, the
build just hangs waiting for test results.

Has anyone else run into this? If so, did you just create a dummy
testcase to get around it? Or are my project set up wrong?

We have several UI projects that don't have any unit tests, just some
manual tests. It seems to me that an empty test suite should just
return a pass result, though a quick step through of the code in the
debugger seems to hint that it's in the FlexUnit framework itself that
just stops if there are no test cases.

I'm not familiar with the FlexUnit source code, so an easier solution
for me is to either add dummy test cases to all of these projects, or
to modify the AllTestFileGenerator to put in a dummy test case if
there is an empty test suite.

Which way is the recommended solution? I've included a patch file for
the dummy test case if that seems reasonable.

thanks,
Logan

emptysuite.patch

Daniel Rinehart

unread,
Oct 10, 2009, 11:49:38 AM10/10/09
to antennae-...@googlegroups.com
I would agree that this feels like a bug in the FlexUnit framework.
I'd recommend logging a bug with them at:

https://bugs.adobe.com/jira/browse/FXU

-- Daniel R. <dan...@neophi.com> [http://danielr.neophi.com/]
Reply all
Reply to author
Forward
0 new messages