Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including a JS test framework #11

Open
ashleynolan opened this issue Nov 17, 2015 · 2 comments
Open

Including a JS test framework #11

ashleynolan opened this issue Nov 17, 2015 · 2 comments
Assignees

Comments

@ashleynolan
Copy link
Contributor

On the back of the discussion on the standalone Kickoff build, will look to implement this as part of the generator.

Am planning on doing some work on testing frameworks at JE in December, so should be more informed as to what to include then and will look to use that in Kickoff then.

@mrmartineau
Copy link
Member

Cool, cheers mate

@munkychop
Copy link

@ashleynolan I’ve been using Mocha with Chai & Sinon for unit tests, which all seem to work pretty well. I used grunt-simple-mocha so that I can run everything through PhantomJS without having to create HTML files. Perhaps a similar setup could work for Kickoff.

Have a look at my Grunt project template for a lightweight example, as it was designed to allow the requiring of Browserify modules from within test spec files. The spec files within test/spec/ are all bundled (via Browserify) into test/bin/test-spec-compiled.js and then mocha is run on this single, compiled file. I also managed to get sourcemaps working with PhantomJS directly in Terminal.

Let me know if you want to go down this route and I'll give you a hand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants