You can enable validation to occur during a build of a project.
Build validation occurs when you select either Build Project, Build All, Rebuild Project, or Rebuild All. These build options appear in a pop-up menu only if automatic builds are disabled. Each of the build commands starts an incremental build of the project or workspace. The incremental build validates the project using the validators that are enabled for the project. The incremental build also validates any projects that are referenced by the project being validated, using the validators that are enabled for each respective project. The rebuild commands start a full build (all previous build output is deleted and everything is recreated).
To enable build validation: