davidchambers/doctest — pull request #20 by davidchambers (2013-12-26 21:03:40+00:00)
Title: support testing of CommonJS modules with dependencies

Closes #18

This introduces the `--module` flag discussed in #12 and elsewhere. Since it's not possible to reliably detect CommonJS modules, I decided to remove the automatic detection of AMD modules for consistency. As a result, occurrences of…

doctest path/to/amd/module.js

should be replaced with…

doctest --module amd path/to/amd/module.js