diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-03-13 23:21:13 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2018-04-04 13:45:34 +0800 |
commit | 2f8df6b0f2cfed39afe8f99cc250c71926aaca79 (patch) | |
tree | 618d5745910d07f9e276e159b8733dd945c937dd /Makefile | |
parent | 83444b7c66a5d3ba89e1d40790db26735094f5ea (diff) | |
download | android-node-v8-2f8df6b0f2cfed39afe8f99cc250c71926aaca79.tar.gz android-node-v8-2f8df6b0f2cfed39afe8f99cc250c71926aaca79.tar.bz2 android-node-v8-2f8df6b0f2cfed39afe8f99cc250c71926aaca79.zip |
build: introduce make jstest
Add a `make jstest` target that runs tests written in JavaScript
(excluding documentation tests which are run in `make test-doc`).
PR-URL: https://github.com/nodejs/node/pull/19324
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matheus Marchini <matheus@sthima.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 16 insertions, 12 deletions
@@ -236,36 +236,40 @@ v8: tools/make-v8.sh $(MAKE) -C deps/v8 $(V8_ARCH).$(BUILDTYPE_LOWER) $(V8_BUILD_OPTIONS) +.PHONY: jstest +jstest: build-addons build-addons-napi ## Runs addon tests and JS tests + $(PYTHON) tools/test.py --mode=release -J \ + $(CI_JS_SUITES) \ + $(CI_NATIVE_SUITES) + .PHONY: test # This does not run tests of third-party libraries inside deps. test: all ## Runs default tests, linters, and builds docs. + # Build the addons before running the tests so the test results + # can be displayed together $(MAKE) -s build-addons $(MAKE) -s build-addons-napi - $(MAKE) -s doc-only - $(MAKE) -s lint + $(MAKE) -s test-doc $(MAKE) -s cctest - $(PYTHON) tools/test.py --mode=release -J \ - $(CI_JS_SUITES) \ - $(CI_NATIVE_SUITES) \ - $(CI_DOC) + $(MAKE) -s jstest .PHONY: test-only test-only: all ## For a quick test, does not run linter or build docs. + # Build the addons before running the tests so the test results + # can be displayed together $(MAKE) build-addons $(MAKE) build-addons-napi $(MAKE) cctest - $(PYTHON) tools/test.py --mode=release -J \ - $(CI_JS_SUITES) \ - $(CI_NATIVE_SUITES) + $(MAKE) jstest # Used by `make coverage-test` test-cov: all + # Build the addons before running the tests so the test results + # can be displayed together $(MAKE) build-addons $(MAKE) build-addons-napi # $(MAKE) cctest - $(PYTHON) tools/test.py --mode=release -J \ - $(CI_JS_SUITES) \ - $(CI_NATIVE_SUITES) + $(MAKE) jstest $(MAKE) lint test-parallel: all |