Skip to content

Utah-Node-Ninjas/mocha-24sep2014

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mocha-24sep2014

Moroni Pickering

Presentation Steps

  1. Start with mocha site: http://visionmedia.github.io/mocha/
        1. Mocha!: http://visionmedia.github.io/mocha/#getting-started
    • review ./test/mocha123Test.js
  2. Synchronous vs. Async testing:
    • compare ./test/utah-node-ninjasTest.js with ./test/mocha123Test.js
  3. Some options Moroni Pickering uses often: http://visionmedia.github.io/mocha/#usage
    • grep: mocha -g
    • run specific test file(s): mocha
  4. Walkthrough https://github.com/Utah-Node-Ninjas/unn-api/blob/develop/test/emailTest.js

Supporting Modules to be Familiar With

  1. Assert - http://nodejs.org/api/assert.html
  2. Should - https://github.com/visionmedia/should.js/
  3. Supertest - https://github.com/visionmedia/supertest

Releases

No releases published

Packages

No packages published