Joe MooreJoe Moore
Standup 06/26/2009: Poor ScrewUnit...
edit Posted by Joe Moore on Friday June 26, 2009 at 01:45PM
  • JQuery Events/live + ScrewUnit = :-(. ScrewUnit swaps the DOM "out from under" the elements that Events/live is watching, which messes with ScrewUnit. Call die on the DOM elements that live events are watching.

  • ScrewUnit + CI + IE = :'-( Also, When ScrewUnit suites become large, they trigger IE's "slow script" warning, which can freeze your continuous integration build. Check out the Registry Hack to set your own timeout.

  • We have a fan of Thor in the house: "Map options to a class. Simply create a class with the appropriate annotations, and have options automatically map to functions and parameters." Which, as is (not) obvious, indicates that Thor is a replacement for rake.

Comments

  1. Jack Dempsey Jack Dempsey on June 26, 2009 at 03:26PM

    "Which, as is obvious, indicates that Thor is a replacement for rake."

    While Thor can definitely be used as a replacement for Rake, its also very useful for standalone scripting. You can use its option parsing abilities and run scripts on their own. I utilize a lot of these abilities in a little project I've been working on called beet, a project generation tool (similar to Rails templates):

    http://jackdempsey.github.com/beet/

  2. Matthew O'Connor Matthew O'Connor on June 27, 2009 at 12:26AM

    It's not at all obvious that Thor is a replacement for rake! At least not from your description, it's a bit more suggestive though once you see the sample code on github.

  3. TJ Holowaychuk TJ Holowaychuk on June 28, 2009 at 10:03AM

    Thor sucks IMO. Check out http://visionmedia.github.com/commander/

  4. Steve Conover Steve Conover on June 28, 2009 at 05:22PM

    Guess it depends on what you're using it for. We like it because we get classes and methods, and we can invoke either via regular object instantiation + method call, or from the command line.

  5. Joe Moore Joe Moore on June 29, 2009 at 09:12AM

    Sarcasm FAIL! Sorry for the confusion. Thor was described to me as a replacement for rake, while the actual description was very confusing to me.

  6. Kristian Hanekamp Kristian Hanekamp on October 19, 2009 at 03:19AM

    To prevent Screw.Unit and jquery Live Events from clashing I use the following "after" function:

    after(function(){ // remove all jquery live events $("*").die(); });

  7. Kristian Hanekamp Kristian Hanekamp on October 19, 2009 at 07:55AM

    Let me try this again, hoping for better formatting:

    To prevent Screw.Unit and jquery Live Events from clashing I use the following "after" function:

    after(function(){ 
      // remove all jquery live events 
      $("*").die(); 
    });