News for hackers. Stuff that matters.
Re:Testing code is simple by EGreg on Thursday September 26, 2013 @03:23PM (#6453008)
Fine, how about this:

  function testCase() {
     // do some stuff
     assert(a>=b, 'less pictures than participants', a,  b);
     // do some stuff
     assert(cool.length, 'cool is empty');
  }
output:

  "testCase: less pictures than participants (3, 4)"
  "testCase: cool is empty"
easy, no?
Re:Testing code is simple by dragonwriter on Thursday September 26, 2013 @06:41PM (#6454080)
If you want to write your own one-function test microframework on that model, feel free; I don't see any reason to prefer using it to existing frameworks, whether xUnit-style or spec-style.