JQuery Events/live + ScrewUnit = :-(. ScrewUnit swaps the DOM “out from under” the elements that Events/live is watching, which messes with ScrewUnit. Call
dieon 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.
Standup 06/26/2009: Poor ScrewUnit…
Friday, June 26, 2009
“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/
June 26, 2009 at 3:26 pm
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.
June 27, 2009 at 12:26 am
Thor sucks IMO. Check out http://visionmedia.github.com/commander/
June 28, 2009 at 10:03 am
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.
June 28, 2009 at 5:22 pm
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.
June 29, 2009 at 9:12 am
To prevent Screw.Unit and jquery Live Events from clashing I use the following “after” function:
after(function(){
// remove all jquery live events
$(“*”).die();
});
October 19, 2009 at 3:19 am
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();
});
October 19, 2009 at 7:55 am