Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


joining tests from multiple files with mocha js


joining tests from multiple files with mocha js  using -'node.js,unit-testing,mocha'

I'm trying to join all the tests from multiple files in one file, something like this:

  describe('Controllers', function() {
    describe('messages.js', function() {
      require('./controllertests/messages').test(options);
    })
    describe('users.js', function() {
      require('./controllertests/users').test(options);
    })
  })


I'm pretty sure this is not the best way to join tests, I'm having some dificulty finding examples of how to do this :s
    

asked Sep 22, 2015 by gauravsinghal83
0 votes
6 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...