Here are the docs for the FDB task:
http://projectsprouts.org/rdoc/classes/Sprout/FDBTask.html
You may need to drop the helper task that's in the default project and
build up your own.
---------------------------
Following are some questions to help me narrow my search for the bug:
Are you using the default cruise task that is emitted by the project generators?
Is this an MXML or ActionScript project?
Looks like you're on OS X, is that correct?
Are you using AsUnit, or some other, (clearly inferior) unit test framework? ;-)
Thanks,
Luke
I've been meaning to make it easier for people to contribute, but you
may run into some snags.
You *should* be able to cd into bundles/as3 and run 'rake test'
You'll be interested in lib/sprout/tasks/fdb_task.rb and test/fdb_test.rb
There's even a commented-out test method that verifies what you're
looking for - it seems it didn't work fast enough to include in the
harness.
The base class for FDBTask is outside of the bundles/as3 folder in
sprout/lib/sprout/tool_task.rb
The tests are brutally slow at the moment as they interact with the
actual compilers, another task on my list is to stub these
interactions with a fake compiler that returns what we expect
immediately. I've been using mocha and considering FactoryGirl for
these interactions.
Please let me know if the test harness doesn't work for you, and I'll
look into that too.
Thanks,
Luke
This is how I avoid loading source from your gem installations.
You want to set it in your ~/.bash_profile and it should look something like:
export SPROUT_HOME=[path where you git cloned to]
On my system, this is:
export SPROUT_HOME=/Users/lbayes/Projects/Sprouts
Thanks,
Luke
Who wrote these damn tests anyway?!
Even better, if I add a trace/puts in front of the tool_task line
that's failing.... no segfault, all tests pass. An arbitrarily long or
short sleep() call does not have the same result for some reason.
The dependencies are all external processes - I'm not pulling in C
headers or anything, so I'm surprised to see a segfault in there.
After a quick rollback to a recent commit, and some more testing, it
turns out the problem was in fcsh_socket_test.rb.
Seems there may be a problem with this test and a recent version of the SDK.
I commented out the test (oh noes!) and checked into master, so you
should be able to pull from master and get a passing test harness. At
least you'll be unblocked for the moment.
Thanks!
Luke