Re: [MacRuby-devel] testing macruby/hotcocoa apps

2009-05-13 Thread Barry Wark
On Tue, May 12, 2009 at 3:26 PM, Jeremy Voorhis wrote: > I second the idea also. Tools like Squish have their place, but as a > solo/hobbyist developer, I'd much rather put some faith in Apple's > efforts to test that scrollbars scroll properly, buttons dispatch to > actions, etc. and focus on how

Re: [MacRuby-devel] testing macruby/hotcocoa apps

2009-05-12 Thread Jeremy Voorhis
I second the idea also. Tools like Squish have their place, but as a solo/hobbyist developer, I'd much rather put some faith in Apple's efforts to test that scrollbars scroll properly, buttons dispatch to actions, etc. and focus on how *my* code constructs views, binds data and generally assert tha

Re: [MacRuby-devel] testing macruby/hotcocoa apps

2009-05-12 Thread Alex Vollmer
On May 11, 2009, at May 11, 11:18 PM, Matt Aimonetti wrote: Before I get too excited, I'd like to hear what you guys think and what you believe you need to write better code? I love the concept, but have often found UI testing tools to be lacking. I think that's because in the past I was al

Re: [MacRuby-devel] testing macruby/hotcocoa apps

2009-05-12 Thread Brian Marick
I think it's prudent to make UI testing as much like unit testing as possible. Tools and tests that poke at the GUI from "outside" are notoriously fragile. I gave a talk at Mountain West RubyConf on using TDD for user interfaces (using RubyCocoa, but the idea is the same for MacRuby).

Re: [MacRuby-devel] testing macruby/hotcocoa apps

2009-05-12 Thread Eloy Duran
Hi Matt, Testing is indeed an area I find interesting. But it's not so much that I like testing itself, but rather the results that one can achieve with it. Be it fixing bugs or rigorously refactoring. Real UI testing, like Squish does, is very cumbersome imo, maybe that's why that testin

Re: [MacRuby-devel] testing macruby/hotcocoa apps

2009-05-11 Thread Matt Aimonetti
Rich, did you try instruments? MacRuby apps work great with it. - Matt On Mon, May 11, 2009 at 11:25 PM, Rich Morin wrote: > Cool stuff. However, I'd like to go a bit further. > > Imagine a stack consisting of Cucumber, RSpec, MacRuby, and some > code which allows existing Cocoa apps to be exe

Re: [MacRuby-devel] testing macruby/hotcocoa apps

2009-05-11 Thread Rich Morin
Cool stuff. However, I'd like to go a bit further. Imagine a stack consisting of Cucumber, RSpec, MacRuby, and some code which allows existing Cocoa apps to be exercised, monitored, etc. (Adding the ability to introspect into Cocoa apps would be a real win for detailed analysis.) -r -- http://

[MacRuby-devel] testing macruby/hotcocoa apps

2009-05-11 Thread Matt Aimonetti
This is a very interesting topic and probably Eloy's favorite theme ;) Overall, the Ruby community strongly believes in testing, as a matter of fact we have so many testing frameworks I did not even test them all: test/unit, rspec, shoulda, bacon, context, cucumber etc Doing unit tests on you