Skip to content
a collection of simple demos of Mocha
JavaScript HTML CSS
Branch: master
Clone or download
Latest commit 26ba24f Jan 12, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo01 first commit Dec 3, 2015
demo02 edit demo02/mochawesome-reports Dec 21, 2015
demo03 first commit Dec 3, 2015
demo04 first commit Dec 3, 2015
demo05 fixing typo Jan 12, 2016
demo06 first commit Dec 3, 2015
demo07 first commit Dec 3, 2015
demo08 first commit Dec 3, 2015
demo09 first commit Dec 3, 2015
.gitignore first commit Dec 3, 2015
README.md edit README Dec 3, 2015
package.json first commit Dec 3, 2015

README.md

This repo is for my article "A Mocha tutorial of Examples" (in Chinese).

"Mocha is a feature-rich JavaScript test framework running on Node.js and the browser, making asynchronous testing simple and fun."

-- Mochajs.org

How to use

First, clone the repo.

$ git clone https://github.com/ruanyf/mocha-demos.git

Then, install the dependencies locally and Mocha globally.

$ cd mocha-demos
$ npm install
$ npm install --global mocha

Enter the demo01 subdirectory.

$ mocha add.test.js

Now, play with the other examples under the repo's demo* directories.

Index

License

MIT

You can’t perform that action at this time.