agents/projects/code-health/hub/references/verification.md
Use these instructions to verify compilation and execution of tests. Because compilation and tests can take a long time and must run in the user's environment, compilation or test commands MUST NOT be executed directly by the agent. Proactively instruct the user to run the build compilation target and/or relevant unit tests, then stop execution and wait for their confirmation.
To run these checks, dynamically determine the target and test names from the modified files:
BUILD.gn definitions or use a standard
target like chrome_apk or chrome_public_apk for Clank/Chrome).MyClassTest). If no specific test is found, look for
directory-level tests or use the automated test runner to identify related
tests (e.g., using --run-related options).autoninja -C <out_dir> <build_target> (e.g., chrome_apk or
chrome_public_apk)tools/autotest.py -C <out_dir> <test_class_name>