I added a conditional to "scripts/slave/recipe_modules/chromium_tests/api.py". I then added a test to scripts/slave/recipes/chromium_trybot.py that exercised this conditional. However, I was still missing coverage. Apparently this is because coverage is evaluated on a per-module basis. Please improve the error message to indicate this.
"""
Name Stmts Miss Cover Missing
----------------------------------------------------------------------------------
scripts/slave/recipe_modules/chromium_tests/api.py 424 1 99% 876
----------------------------------------------------------------------------------
TOTAL 19505 1 99%
481 files skipped due to complete coverage.
FATAL: Insufficient coverage (99%)
----------------------------------------------------------------------
Ran 1782 tests in 85.751s
FAILED
NOTE: You may need to re-train the expectation files by running:
./scripts/slave/.recipe_deps/recipe_engine/recipes.py --package /Users/erikchen/projects/infra/build/infra/config/recipes.cfg test train
"""
Comment 1 by tandrii@chromium.org
, Jun 20 2017