Skip to content

Commit 348e257

Browse files
committed
Reference tape bin directly
Adds support for using `istanbul` on Windows. `npm` wraps bin files in `.cmd` files, which `istanbul` cannot parse. The workaround is to reference bin files directly. For details, see https://github.com/gotwarlost/istanbul#usage-on-windows.
1 parent 75f6738 commit 348e257

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tools/ci/appveyor.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,8 @@ make benchmark >> "$CI_LOG_PATH" 2>&1
9797
echo 'Running examples...'
9898
make examples >> "$CI_LOG_PATH" 2>&1
9999

100-
# TODO: uncomment once https://github.com/ForbesLindesay/cmd-shim/issues/17 is resolved.
101-
# echo 'Generating test coverage report...'
102-
# make test-cov >> "$CI_LOG_PATH" 2>&1
100+
echo 'Generating test coverage report...'
101+
make test-cov >> "$CI_LOG_PATH" 2>&1
103102

104103
echo 'Success!'
105104

tools/make/lib/test/tape.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
#
99
# [1]: https://github.com/substack/tape
1010

11-
JAVASCRIPT_TEST ?= $(BIN_DIR)/tape
11+
# Note: we reference the `bin` file directly in order to support using `istanbul` for code coverage on Windows (https://github.com/gotwarlost/istanbul#usage-on-windows)
12+
JAVASCRIPT_TEST ?= $(NODE_MODULES)/tape/bin/tape
1213

1314
# Define any command-line options to use when invoking the `tape` executable:
1415
JAVASCRIPT_TEST_FLAGS ?=

0 commit comments

Comments
 (0)