Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to write and run unit tests for Brunch with Coffee

I am developing an application using Brunch with Coffee.

How do I write unit tests for it? I am currently mostly thinking about the model classes, so it can run without the browser, using NodeJS.

Writing the tests themselves is not the problem here, but having a good way to integrate into how brunch is set up (the way it compiles and stitches everything together and takes care of dependencies) seems a bit tricky.

like image 386
Thilo Avatar asked Nov 04 '22 12:11

Thilo


1 Answers

Have you looked to see how the demo app for Brunch does it:

https://github.com/brunch/todos/tree/gh-pages/test

like image 80
Brian Genisio Avatar answered Nov 09 '22 05:11

Brian Genisio