Skip to content

Commit f240d02

Browse files
committed
build: Add build target for tools/doc tests
Addresses #5955. Add a build target called `make test-doc` as suggested in the issue.
1 parent 2040025 commit f240d02

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ test: | cctest # Depends on 'all'.
115115
$(PYTHON) tools/test.py --mode=release message parallel sequential -J
116116
$(MAKE) jslint
117117
$(MAKE) cpplint
118+
$(MAKE) test-doc
118119

119120
test-parallel: all
120121
$(PYTHON) tools/test.py --mode=release parallel -J
@@ -253,6 +254,10 @@ apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_as
253254

254255
doc: $(apidoc_dirs) $(apiassets) $(apidocs) tools/doc/ $(NODE_EXE)
255256

257+
test-doc:
258+
$(NODE) ./tools/doc/tests/test_html.js
259+
$(NODE) ./tools/doc/tests/test_json.js
260+
256261
$(apidoc_dirs):
257262
mkdir -p $@
258263

0 commit comments

Comments
 (0)