|
From: David H. <em...@da...> - 2006-11-20 23:27:24
|
Hi,
I am trying to get started in ASUnit but am having some trouble.
I am running Flash 8 on Mac OS X Tiger. I installed the ASUnit MXP. I also
downloaded the Unit Testing with ASUnit PDF by Mark Daggett. When I tried to
create the first test suite as he describes, the JSFL recursively added
AllTest.as files to every directory on my hard drive, beginning at root,
before it bombed.
Next, I installed the ASUnit XUL app, as described in a recent entry on the
blog. I got that to run, and I tried to follow the PDF using the XUL instead
of the MXP. I created a new project set up as follows:
/example
/deploy
/source
/test
I put my FLA into 'source', and had ASUnit put a class called Example.as
into 'source' and had ASUnit put the test files into 'test'. I changed the
publish settings for the file to publish the swf to 'deploy.'
No matter what I do, I cannot seem to get past these error messages:
**Error** /Users/dham/Desktop/example/test/ExampleTest.as: Line 5: The class
or interface 'asunit.framework.TestCase' could not be loaded.
class ExampleTest extends TestCase {
**Error** /Users/dham/Desktop/example/test/AllTests.as: Line 2: The class or
interface 'asunit.framework.TestSuite' could not be loaded.
class AllTests extends asunit.framework.TestSuite {
Total ActionScript Errors: 2 Reported Errors: 2
Help! What am I doing wrong? Many thanks for any help you can offer,
OK
DAH
--
David Ham
http://anthropomorphy.org :: NEW MOBILE NUMBER => +1 630.297.1273
http://davidham.com :: em...@da...
|