Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d80683d

Browse files
Benjamin CoeMylesBorins
Benjamin Coe
authored andcommittedSep 28, 2017
build: run es-module tests in CI
Add es-module to CI_JS_SUITES/js_test_suites, so that tests run in CI. Update test/README adding es-module section. PR-URL: nodejs#15276 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 6803dab commit d80683d

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed
 

‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ test-all-valgrind: test-build
336336

337337
CI_NATIVE_SUITES := addons addons-napi
338338
CI_ASYNC_HOOKS := async-hooks
339-
CI_JS_SUITES := abort doctool inspector known_issues message parallel pseudo-tty sequential
339+
CI_JS_SUITES := abort doctool es-module inspector known_issues message parallel pseudo-tty sequential
340340

341341
# Build and test addons without building anything else
342342
test-ci-native: LOGLEVEL := info

‎test/README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ On how to run tests in this directory, see
1212

1313
|Directory |Runs on CI |Purpose |
1414
|-------------------|---------------|---------------|
15-
|abort |No |Tests for when the ``` --abort-on-uncaught-exception ``` flag is used.|
15+
|abort |Yes |Tests for when the ``` --abort-on-uncaught-exception ``` flag is used.|
1616
|addons |Yes |Tests for [addon](https://nodejs.org/api/addons.html) functionality along with some tests that require an addon to function properly.|
1717
|cctest |Yes |C++ test that is run as part of the build process.|
1818
|common | |Common modules shared among many tests. [Documentation](./common/README.md)|
19+
|es-module |Yes |Test ESM module loading.|
1920
|fixtures | |Test fixtures used in various tests throughout the test suite.|
2021
|gc |No |Tests for garbage collection related functionality.|
2122
|inspector |Yes |Tests for the V8 inspector integration.|
@@ -29,3 +30,7 @@ On how to run tests in this directory, see
2930
|testpy | |Test configuration utility used by various test suites.|
3031
|tick-processor |No |Tests for the V8 tick processor integration. The tests are for the logic in ```lib/internal/v8_prof_processor.js``` and ```lib/internal/v8_prof_polyfill.js```. The tests confirm that the profile processor packages the correct set of scripts from V8 and introduces the correct platform specific logic.|
3132
|timers |No |Tests for [timing utilities](https://nodejs.org/api/timers.html) (```setTimeout``` and ```setInterval```).|
33+
34+
_When a new test directory is added, make sure to update the `CI_JS_SUITES`
35+
variable in the `Makefile` and the `js_test_suites` variable in
36+
`vcbuild.bat`._

‎test/es-module/test-esm-pkg-over-ext.mjs

-8
This file was deleted.

‎vcbuild.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ set enable_static=
4444
set build_addons_napi=
4545
set test_node_inspect=
4646
set test_check_deopts=
47-
set js_test_suites=abort async-hooks inspector known_issues message parallel sequential
47+
set js_test_suites=abort async-hooks es-module inspector known_issues message parallel sequential
4848
set v8_test_options=
4949
set v8_build_options=
5050
set "common_test_suites=%js_test_suites% doctool addons addons-napi&set build_addons=1&set build_addons_napi=1"

0 commit comments

Comments
 (0)
Please sign in to comment.