Skip to content
forked from tehsenaus/docha

Generate documentation from your Mocha BDD tests

Notifications You must be signed in to change notification settings

galekseev/docha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docha

Generate documentation from your Mocha BDD tests

Install: npm install --save-dev docha

Usage

In your project directory, run:

docha

Note: This will overwrite any README.md file that was already there!

It assumes your Mocha tests are under test/.

Example

If we have the following in test/test.js:

describe('Something', function () {
	describe('some function', function () {
		it('does some work', function () {
			fn('data').should.equal('result')
		})
	})
})

The output README.md will be:

# Something
## some function
 some function does some work

```
fn('data').should.equal('result')
```

For a more fully-fledged example, see: https://github.com/tehsenaus/node-mkenv

About

Generate documentation from your Mocha BDD tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%