Hi @nodejs/n-api, before drafting the first version of the N-API test suite, I think we have the following issues to address.
Questions collection
- When the test suite is completely moved inside this repository, how to integrate it in Node.js?
- When the test suite is completely moved inside this repository, how to integrate it for other runtimes, is it consistent with Node.js?
- What's the rule to sync N-API tests before this move is complete?
My proposal
When the test suite is completely moved inside this repository, how to integrate it in Node.js?
For example, a bugfix on current implementation on Node.js itself is submitted on our main repository nodejs/node, the test suite needs to be merged on nodejs/napi-test-suite
as a precondition, this seems a little verbose to contributors.
A suggestion is to keep the latest test suite for N-API still on Node.js, and archives tests when releasing a Node.js version. Archives tests means:
- pull the given version(
v0.10.0
) on the master branch.
- publish as a npm package,
@nodejs/napi-test-suite
?
- also create a tag.
When the test suite is completely moved inside this repository, how to integrate it for other runtimes, is it consistent with Node.js?
When the above proposal is accepted and complete, the others only needs to use npm install
by a specific version, and run these tests by themselves. And there is no necessary to use this in Node.js, too, this is for Node.js-like runtimes only.
What's the rule to sync N-API tests before this move is complete?
When the above proposal is accepted and complete, we could skip this problem as well.
/cc @gabrielschulhof @mhdawson