Search code examples
javascriptnode.jsunit-testingnode-opcua

Run and add unit tests to nodejs project


I want to run the tests related to this project on github, see folder test on https://github.com/node-opcua/node-opcua . Unfortunately I have no idea which testing framework was used and how to run all the tests?


Solution

  • First, run npm install
    This will install the required dependencies.

    You can then use

    npm test

    See here: https://github.com/node-opcua/node-opcua/blob/master/package.json#L15

    That will run the tests using Mocha.