Make JavaScript Testing Fun With Testem
videos

Make JavaScript Testing Fun With Testem

Tutorial Details
  • Difficulty: Intermediate
  • Completion Time: 20 Minutes

JavaScript testing is a sensitive subject. Some developers are huge advocates of it (including myself), while others don’t see the need or benefit. One huge barrier is the simple fact that it can sometimes take a considerable amount of setup to get up and running. The longer it takes, the more likely it is that the developer simply won’t bother. That’s why Testem is so fantastic; it makes testing as effortless as possible, and, more importantly, fun!

Show Links

Tags: tddVideos
Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://twitter.com/airportyh airportyh

    Thanks for this! I like the thorough coverage of the features. Seems to have hit a glitch in the video where there were 4 tabs in the UI, I’d like to get that fixed.

  • Ian

    Very cool. Thank you. I got through the whole tutorial even though I had a couple of issues.

    Chrome on windows doesn’t seem to be accepting parameters from testem right. For whatever reason chrome usually starts about 8 process threads. When I run testem chrome doesn’t start but 4 process threads show up in task manager and the chrome tab shows up in the command line and testem runs the tests just fine. Then if I manually start chrome it works but won’t update when testem updates.

    Then I’m having an issue with the before_tests line. The coffee compile command won’t take tests/*.coffee but it works with just ‘coffee -c tests’ so I guess it’s fine since it doesn’t try to compile anything but coffee files.

  • http://twitter.com/AussieFlem Andy Fleming

    Great tutorial – I’ve been meaning to started with Unit Testing for a while, and this walked through the setup nicely. Now to roll it into our active projects…

  • http://roadha.us/ haliphax

    I look forward to watching this. Also — yaaaaay for Disqus!

  • http://twitter.com/davatron5000 Dave Rupert

    Great tutorial, Jeffrey! Loved every minute.

  • Thomas Horster

    Where does it differ from grunt which uses phantomjs for unittests? Is it possible to run multiple browser instances, even from virtual machines?

    • http://twitter.com/airportyh airportyh

      Yes. You can connect manually from browsers within virtual machines. You can have Testem launch multiple local browsers for you on start.

  • http://twitter.com/airportyh airportyh

    I just want to mention one more tip: you get the biggest productivity boost when you tile your editor and your testem terminal side by side rather than having to switch between them.

    • JeffWay
      Author

      Oh sure. It’s just a little different for screencasts, because you have to lower the resolution a good bit, when recording.

  • تور کیش

    thnx a lot it was useful
    http://kish-travel.ir/kishtour

  • Raffi

    Very useful tutorial. Also, I like the picture of the bear, good choice.

  • BrianFrichette

    Looks nice for getting up and running quickly, but for a larger project I think I’ll stick with grunt+testacular.

  • shamim

    Nice post and thanks to share.

  • hasan

    Wow nice tutorials and thanks to share..

  • http://twitter.com/theRegge theRegge

    Fantastic tut! Thanks.

  • http://goarticles.com/article/Important-Factors-to-Take-Into-Consideration-to-Become-a.NET-Developer/7124815/ AlanaGrant

    I also like the thorough protection of the functions. Seems to have hit a problem in it clip where there were 4 an eye in the UI, I’d like to get that set.

  • http://www.amazines.com/article_detail.cfm/5235731?articleid=5235731 Igor Andrews

    Nowadays, in almost any variety of company, accessibility and advantage are the most important keys for success.

  • roblevintennis

    Can’t believe I’d never heard of this tool. I wonder how this sort of tool would fit in (or not) with a yeoman.js workflow? Thanks Jeff