Node.js Collection
Published in

Node.js Collection

Help Wanted: Node Addon API’s Road to Full Unit Test Coverage

This blog was written by Jack Xia, with additional contributions from the Node-API working group and project collaborators.

Hello everyone! The Node-API working group needs some help from the community to achieve full unit test coverage for the node-addon-api project.

If you aren’t familiar with writing native C++ addons for Node.js or what we do, this blog post (https://nodejs.medium.com/building-modern-native-add-ons-for-node-js-in-2020-cd3992c68e0) and the node-addon-api Github repo (https://github.com/nodejs/node-addon-api) is a great place to start.

We’ve made it one of our milestones to achieve full testing coverage. Although we have completed documenting existing tests for our C++ classes, there are still quite a few gaps that we have yet to cover. We’ve labeled test coverage reports as “good first issue” and any empty entries in these tables mean that test coverage is missing for the class method. PRs are welcome! 😊

Speaking as someone who joined the Node-API working group as a mentee, writing tests was a great way for me to become more acquainted with writing node addons and to understand how Node.js works under the hood. If you are looking into contributing to an open-source project and have an interest in the native side of Node.js, this is a great starting point!

--

--

--

Community-curated content for the millions of Node.js users.

Recommended from Medium

[NUMPY] Multiple Options for Creating Array/Ndarrays (Tensors) with Numpy

String Compression Problem - Solution in Python

Future Programming Languages

Post auth RCE based in malicious LUA plugin script upload SCADA controllers located in Russia

Number of Islands — Day 5(Python)

Introduction to Operational Transconductance Amplifier (OTA) — The Engineering Knowledge

What Is Xamarin.Forms? Understand Xamarin.Forms Before You Regret.

A quick start guide to player input using both Unity input methods.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Node.js

Node.js

Node.js is a collaborative open source project dedicated to building and supporting the Node.js platform. https://nodejs.org/en/

More from Medium

Automate Deploying VueJS with NodeJS Docker Image on AWS App Runner through CloudFormation

Level up your Prettier and ESLint setup in 3 simple steps

How to use Prettier with ESLint — Alva Labs

How To Set Up a TypeScript Project (2022)

Desk with a Macbook and Coffee

Learned MVC pattern in node JS