运行并将unit testing添加到nodejs项目

我想在github上运行与这个项目相关的testing,请参阅https://github.com/node-opcua/node-opcua上的文件夹testing。 不幸的是,我不知道使用了哪个testing框架以及如何运行所有的testing?

首先,运行npm install
这将安装所需的依赖关系。

你可以使用

npm test

看到这里: https : //github.com/node-opcua/node-opcua/blob/master/package.json#L15

这将使用摩卡运行testing。