WP2 provides a simple command line test tool and does automatic testing during build time. The build time testing it done using a unit testing framework.