Create separate bazel test target for each directory's template test

Previously, running the entire template test suite took about twelve
minutes. In order to speed this up, test top level directories as
individual test targets that can be run in parallel.

It now takes about 4 minutes to run everything (on a Macbook Pro)

Documentation updated as well, as commands have changed.

Change-Id: Ie815a7fafc64b442f36b92d0d295f8cfbe12cc0d
This commit is contained in:
Becky Siegel
2017-08-15 11:51:09 -07:00
parent cf6bb11809
commit b43e9957b3
5 changed files with 46 additions and 11 deletions

View File

@@ -55,7 +55,8 @@ def writeTempFile(file, root):
if "gr-reporting" in file:
return
if not root in elements:
elements[root] = {}
# gr-app doesn't have an additional level
elements[root] = {"directory": 'gr-app' if len(root.split("/")) < 4 else root.split("/")[3]}
if file.endswith(".html") and not file.endswith("_test.html"):
# gr-navigation is treated like a behavior rather than a standard element
# because of the way it added to the Gerrit object.