-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: configure proper devDir for invoking configure() #1796
Conversation
Just to double check -- we still download the headers at least once elsewhere in the tests? |
@richardlau maybe not, maybe I'll add one to test-download.js which mocks it all out I think. |
Another way to check would be to see if coverage drops after this PR (now we're using |
9b3f6d0
to
ee46c5c
Compare
ee46c5c
to
c3dfcec
Compare
I've rebased this and added a whole new test that downloads headers and verifies contents. @nodejs/node-gyp ptal. |
c3dfcec
to
43fa2df
Compare
test/test-configure-python.js downloads a fresh set of headers to the package directory each time. By setting to the default global cache dir we get to re-use cached headers and skip the download step. PR-URL: #1796 Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1796 Reviewed-By: Richard Lau <riclau@uk.ibm.com>
43fa2df
to
0670e51
Compare
landed |
test/test-configure-python.js downloads a fresh set of headers to the package directory each time. By setting to the default global cache dir we get to re-use cached headers and skip the download step. PR-URL: #1796 Reviewed-By: Richard Lau <riclau@uk.ibm.com>
PR-URL: #1796 Reviewed-By: Richard Lau <riclau@uk.ibm.com>
test/test-configure-python.js downloads a fresh set of headers to the package directory each time. By setting to the default global cache dir we get to re-use cached headers and skip the download step. Speeds up tests and prevents the creation of a new directory with headers in it in the package root each test run.