Open ianb opened 12 years ago
It would be nice if you could make nodeunit-compatible tests from doctests. This might look like:
doctest = require('doctest'); exports.testDoctests = doctest.UnitTest('some_file.js');
This might be very simplistic, like just create a function that raises an exception when it fails. But it could also do something like explode tests into a suite.
It would be nice if you could make nodeunit-compatible tests from doctests. This might look like:
This might be very simplistic, like just create a function that raises an exception when it fails. But it could also do something like explode tests into a suite.