You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node.js is using Google Test for C++ unit tests, as well as simple JavaScript files as test cases. JavaScript tests look like they are preferred, but obviously can't be used for everything (i.e. embedding Node.js 😄 ).
Running configure --shared followed by make cctest results in the following error:
Makefile:279 recipe for target test/addons/.docbuildstamp failed
Running configure followed by make cctest successfully executed the currently existing tests. But, when calling node::lib::Initialize() in one of the tests, the following error occurs:
bootstrap_node.js:511
const ContextifyScript = process.binding('contextify').ContextifyScript;
^
Error: No such module: contextify
at bootstrap_node.js:511:36
The test/addons/.docbuildstamp target fails, because make test-only tries to run node as an executable: ./node tools/doc/addon-verify.js. When building node as a shared library, however, there is no executable to be executed, which in turn results in the tests failing.
make cctest fails for the same reason: make tries to run cctest (an executable), but it gets built as a shared lib and therfore fails. I have not looked into what cctest is, but if we manage to build it as an exe that tests the lib, maaaybe we're good to go here.
The text was updated successfully, but these errors were encountered: