Giter Site home page Giter Site logo

mochajs / mocha Goto Github PK

View Code? Open in Web Editor NEW
22.4K 397.0 3.0K 22.89 MB

☕️ simple, flexible, fun javascript test framework for node.js & the browser

Home Page: https://mochajs.org

License: MIT License

JavaScript 99.06% HTML 0.04% CSS 0.85% CoffeeScript 0.03% TypeScript 0.01%
mocha javascript testing tdd bdd browser nodejs mochajs node test

mocha's People

Contributors

a8m avatar adomokos avatar bamieh avatar boneskull avatar brendannee avatar craigtaub avatar danielstjules avatar dasilvacontin avatar domenic avatar giltayar avatar glenjamin avatar jamescarr avatar jfirebaugh avatar joliss avatar joshuakgoldberg avatar juergba avatar jugglinmike avatar munter avatar ndhoule avatar outsideris avatar plroebuck avatar rauchg avatar raynos avatar rstacruz avatar scottfreecode avatar tj avatar tootallnate avatar travisjeffery avatar tricknotes avatar xhmikosr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mocha's Issues

switch to stderr

output is getting munged quite a bit since node does not (currently) flush

#<WriteStream> has no method 'getWindowSize'

Hank:admin deedubs$ ./node_modules/.bin/mocha

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object # has no method 'getWindowSize'
at Object. (/Users/deedubs/Projects/admin/node_modules/mocha/lib/reporters/base.js:68:22)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at require (module.js:355:19)
at Object. (/Users/deedubs/Projects/admin/node_modules/mocha/lib/reporters/index.js:2:16)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
Hank:admin deedubs$ node -v
v0.4.12

object diffs

when loose equality is performed it's pretty annoying to see the difference between two arrays, two large objects etc

cascade [before/after]Each()

ex:

var app;

describe('config', function(){
  beforeEach(function(){
    app = express();
  })

  describe('.set()', function(){
    it('should set a value', function(){
      app.set('foo', 'bar').should.equal(app);
    })
  })

  describe('.get()', function(){
    it('should get a value', function(){
      //...
    })
  })
})

Add tagging

like visionmedia/expresso#127 something similar to this, but maybe just file based instead, or maybe we just leave this up to the user to separate them into different files

site

make a website sometime

double check test durations

one in express is reporting as 20ms, however when moved below another that one is reported as 20ms haha...

doc reporter

it would be cool to output some html that could be used as reference docs with blocks etc,
retaining the nesting you use in the tests

test for errors/exceptions

The testing for a Method to cause a error would be nice, some methods do raise errors/exceptions (validation for example), and testing for them could help avoid people writing boilerplate to simulate this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.