https://github.com/schteppe/nodeunit-stubgen
Test stub / skeleton generator for nodeunit
https://github.com/schteppe/nodeunit-stubgen
Last synced: 21 days ago
JSON representation
Test stub / skeleton generator for nodeunit
- Host: GitHub
- URL: https://github.com/schteppe/nodeunit-stubgen
- Owner: schteppe
- Created: 2014-02-15T16:51:25.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-15T18:30:09.000Z (about 11 years ago)
- Last Synced: 2025-02-09T22:41:18.514Z (2 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
nodeunit-stubgen
================Creates stubs for nodeunit given YUIDoc documented code.
Say you have the following structure of files:
```
docs/
data.json # files generated by YUIDoc
index.html
...
src/
dirA/
MyClassA.js
dirB/
MyClassB.js
```Now run
```sh
$ nodeunit-stubgen --yuiroot src --root src --outDir test docs/data.json
```Like magic, you have now got a new folder.
```
test/
dirA/
MyClassA.js
dirB/
MyClassB.js
index.js
```
Directory and file structure is the same, with addition to index.js, which is the main test entry file. All documented methods are stubs in the files.For help, run ```nodeunit-stubgen --help```.