The test infrastructure is documented in $PTII/doc/coding/testing.htm which can be found at
http://ptolemy.eecs.berkeley.edu/ptolemyII/ptIIlatest/ptII/doc/coding/testing.htm As Edward mentioned, it is fairly easy to get build models that use the Test actor. However, to cover corner cases and provide more complete coverage, you should consider building unit tests as well. We use Jacl, which is a 100% Java implementation of a subset of Tcl for our unit test harness. Lots of people use JUnit though, so you might look at JUnit. The advantage of Jacl is that it is interpreted, so I find it much faster to use when building tests than using JUnit. Being able to type at a command prompt while building tests is a big win. Best practices include having a code coverage tool and nightly builds. You might find the following paper interesting. J. Reekie, S. Neuendorffer, C. Hylands and E. A. Lee ``Software Practice in the Ptolemy Project,'' Technical Report Series, GSRC-TR-1999-01, Gigascale Semiconductor Research Center, University of California, Berkeley, CA 94720, April 1999. http://ptolemy.eecs.berkeley.edu/ptolemyII/ptIIlatest/ptII/doc/coding/sftwareprac/index.htm To run the tests, run cd $PTII make tests _Christopher -------- To date, I've taken an ad hoc approach to testing new Ptolemy actors I've w ritten: I draft the Java implementation, put together a simple MoML model ( source + new actor + sink), and inspect the output. I would rather have a m ore disciplined approach (possibly with JUnit), but I'm not sure how to inst antiate suitable a "minimal" Ptolemy runtime, and I couldn't find any exampl es in the ptII-4.0.1-src tree. Ptolemy developers (both at UCB and in the community at large): what sorts of "best practices" have you evolved for developing and testing your Ptolem y actors (including/in addition to unit tests)? Are there example test case s in the Ptolemy source distribution that I didn't see on first inspection? Thanks, Andy Z. ----- Andrew Zimdars Modeling, Simulation, and Information Sciences (Org. ABCS) Advanced Technology Center, Lockheed Martin Space Systems Co. Bldg. 153, Col. 2J4 1111 Lockheed Martin Way, Sunnyvale, CA 94089 w: 408/742.2111 m: 510/915.0662 --------------------------------------------------------------------------- - Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED] -------- ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]