This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build project action doesn't compile tests. Tests are compiled after action TestProject first. An action for compiling unit tests should be in ui.
Assuming you are referring to j2seproject's which have a compile-test target but no such binding e.g. in the context menu. Don't see any compelling need for it. Just run your tests. You can also compile individual test files using F9.