News for hackers. Stuff that matters.
Re:Poll: Do you test your code? by sunir on Wednesday March 14, 2012 @01:23PM (#3704183)
People write and play with test frameworks because they are procrastinating from writing actual tests. Think about it.

Just use Test::Unit and move on with your life. Write some tests. That's what counts.

Re:Poll: Do you test your code? by eric-hu on Wednesday March 14, 2012 @07:01PM (#3705888)
I'm working on a single page app that's about 30% Rails and 70% Coffeescript/Backbone.js. Test::Unit is practically useless for us since users never hit any plain HTML pages besides the login page.

Imagine the current HTML5 Pandora having bugs with one particular song in Chrome only. How do you test for that using Test::Unit?

Re:Poll: Do you test your code? by mattbriggs on Wednesday March 14, 2012 @08:06PM (#3706086)
there are a bajillion libraries out there for unit testing javascript (something test::unit-ish would be qunit). rails + backbone + JST style templating actually makes TDDing your js relatively painless
Re:Poll: Do you test your code? by eric-hu on Thursday March 15, 2012 @09:07PM (#3711446)
We're looking into integration-level testing for our Javascript since it'd give us full coverage of the bugs we see.

I forgot to mention we also use Socket.io for real time push updates to user Backbone models. A good number of bugs don't crop up until another user modifies data and those changes get pushed out to another person.

Re:Poll: Do you test your code? by Oompa on Thursday March 15, 2012 @12:19AM (#3706816)
Testing with front end javascript is more difficult due to different interpreters, much more variation in environment, etc. That doesn't mean you can't have tests for your core business logic at least in something like Vows or Mocha.
Re:Poll: Do you test your code? by sunir on Wednesday March 14, 2012 @09:35PM (#3706332)
You don't. You use QUnit and move on with your life.