Registry / testing / hydro-dot

hydro-dot

JSON →
library2.0.1jsnpmunverified

A dot formatter for the hydro test framework, displaying test output as a sequence of dots (passed), F (failures), and other indicators. Current stable version 2.0.1, requires hydro 0.x. This is a minimal, specific-purpose formatter with no updates since 2013.

npm install hydro-dot
INSTALL
IMPORT
SIG · HYDRO-DOT
H
hydro-dot
testingjavascriptv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

hydro-dot
formatter usage only - not a module import; run with hydro --formatter hydro-dot
const dot = require('hydro-dot')
This package is a CLI formatter, not a library. Do not require or import it in code.

Installs hydro-dot and runs tests using the dot formatter from the command line.

// Install hydro and hydro-dot // npm install hydro hydro-dot // Write a test file (test.js): var hydro = require('hydro'); hydro.addFile('test/*.js'); // Run with dot formatter: // hydro --formatter hydro-dot // Example test: hydro.test('example', function(){ hydro.assert(true); });
Debug
Known issues
deprecatedhydro-dot is no longer maintained and works only with hydro 0.x. The hydro project itself appears inactive.
fix
Consider migrating to a modern test framework like Mocha or Jest, which have dot formatters built-in.
affects: >=0.0.0
gotchahydro-dot is not a JavaScript module; it must be used via the command line with hydro. Attempting to require('hydro-dot') will not work.
fix
Use it as a CLI formatter: hydro --formatter hydro-dot
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'hydro-dot'
Installed locally but not in the correct path, or hydro not picking up the formatter.
fix
Install hydro-dot as a devDependency and ensure you run hydro from the project root: npm install --save-dev hydro hydro-dot && hydro --formatter hydro-dot
TypeError: require(...) is not a function
Trying to use hydro-dot programmatically via require instead of as a CLI tool.
fix
Do not use require('hydro-dot'). Instead run the hydro CLI with --formatter flag.
Upgrade
Version history
2.0.1latest on npm
Audit
Dependencies
hydrorequiredpeer dependency - hydro test framework required
Agent activity
2 hits · last 30 days
node
2
Resources
hydro-dot — npm install hydro-dot · libregistry