5.1. How do I decide whether my test should use the compile action or the build action?

The build action will compile the specified class only if the classfile doesn't exist or is older than its source. The compile action always invokes the compiler. Typically, the compile action is used only to test the compiler, while the build action is used for tests that make use of multiple sources or for API tests.