Skip to content

toastynerd/browserify-mocha-chai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing front end code with browserify and mocha/chai

In order to test first run grunt browserify:test which will create the test-suite.js file from all of the .js files located in test/front-end/unit. After that open test.html in a browser and there should be two passing tests. To run tests on the command line run grunt test, this will build the same test-suite with browserify and run grunt-simple-mocha on that file.

There is also an autotest feature that will detect changes in the files specified in the watch:autoTest:files array and rerun both the browserify and test tasks automatically.

About

testing with browserif and mocha/chai in both the browser and on the command.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published