Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
node-jqunit
Advanced tools
An XUnit unit testing framework (in the style of JUnit) for node.js, using QUnit as the underlying engine
node-jqunit
- A JavaScript Unit Testing frameworkThe XUnit testing style (first seen in JUnit and the like) is a popular style
for writing test fixtures. node-jqunit
is a port of this idiom to JavaScript for use
within the node.js server-side JavaScript framework. It uses Fluid's infusion framework
for resolution of global names. Currently the majority of the implementation of jqUnit itself is also within the infusion
module.
This implementation itself is layered on top of the popular QUnit framework.
We traditionally name node-jqunit
's global as jqUnit
(which is not a valid npm module name as it contains a capital letter).
To run a file containing test fixtures, simply execute it with node -
node fixtureFile.js
To write a fixture file, begin with
var fluid = require("infusion");
var jqUnit = fluid.require("node-jqunit", require, "jqUnit");
You may use also use plain "require" to load jqUnit, although it is essential that it itself may resolve the Fluid framework (infusion).
Then begin by starting a "module" and then issue some tests:
jqUnit.module("My Module");
jqUnit.test("My test case", function () {
jqUnit.assertTrue("I assert that this is true", true);
}
);
The documentation for jqUnit itself is in Infusion's documentation at jqUnit.
All the assertions and helper functions described there are valid for use within node-jqunit
if they do not refer to the browser or DOM nodes.
The test cases for node-jqunit
itself can be found in the test directory - instructions for running them are in their README
FAQs
An XUnit unit testing framework (in the style of JUnit) for node.js, using QUnit as the underlying engine
We found that node-jqunit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.