librelist archives

« back to archive

Is there a way to do tests with green_shoes?

Is there a way to do tests with green_shoes?

From:
James Gifford
Date:
2012-06-16 @ 15:30
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I guess this is more directed at ashbb than anyone else.

I'm trying to create an application with green_shoes (until shoes4 is
distributed as a gem, I can't really use it), and I'm not finding a
way to do tests for my application.

Or should I wait until shoes4 is distributed as a gem?


- -- 
James Gifford
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJP3KaJAAoJENbAQRq+BvX7Rp0IAKPW0vPj1cmSOtmJSyLhJXTm
eZF/h3W7uUJDsl7SG0CNps0VUPYTIZe87cI8r7Hp9dCyMKza4G6tvFD95th4L20Z
wpLinB6J4On3CycSVhDWltas3IoqVe4+bXjfS6bGu0GMKQW5MP4HyfVekP3k34/t
HbQz+EeACzW6cEukYjqtaErIQ5iJND91wz5w/muCfXZ9qNDZhaGRZwTnv4UJKVJL
j/s3NYg4FQ/H6jNLdlvnHOztQHMm/8YyAj9eMAJBrV63JhNyZQyEM/385NObw0Ph
RdqZshfflAuBrZH6cVLSlIMwYy3Qbix0w9EAu2F79o2AA6SmxhkaV/9lq3BsYIY=
=oFNC
-----END PGP SIGNATURE-----

Is there a way to do tests with green_shoes?

From:
James Gifford
Date:
2012-06-16 @ 15:30
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I guess this is more directed at ashbb than anyone else.

I'm trying to create an application with green_shoes (until shoes4 is
distributed as a gem, I can't really use it), and I'm not finding a
way to do tests for my application.

Or should I wait until shoes4 is distributed as a gem?


- -- 
James Gifford
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJP3KaDAAoJENbAQRq+BvX7CToH/jA6MHuJ7v+umhK7RxTc56oe
0SIeDNvbXym/0XC2S33NziKliT0jKfiG8OfdBv71Y5Rg+yWQbxtk22EF/zGP+v9r
tFVW7dEqXqA+RI4wop5AycPpwfxEfVXVRSek1v4R3VytL6HzD69EIlUJOoOc1Da/
fUVzfG5aivJ/vUIla1LbFHMKoRyL/SqYrC4IppeTG6ORvYL113j3sPdONGaswEOj
EIFZlQ0kMKQ3ZrTeMhNlXhJinsX4uvBG9vJpQVpX4zC3PzJAL6tSGdkt6fQtsRT4
cwOKR8EkwZtEYkUw7Ooe1Da2h3909WpOA/4mrjqgutDUtn7bssD7dEE61EKLnTI=
=cUop
-----END PGP SIGNATURE-----

Re: [shoes] Is there a way to do tests with green_shoes?

From:
Tobias Pfeiffer
Date:
2012-06-16 @ 16:27
Hi James!

The way I do it is test my models seperately and leave the GUI stuff 
untested. Once shoes-mocks (https://github.com/shoes/shoes-mocks) was 
started to address this issue, but it's not usable.

I hope to revive shoes-mocks when shoes4 is ready, as sort of a 
mock/stub backend. We'll see.

Cheers,
Tobi


On 16.06.2012 17:30, James Gifford wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I guess this is more directed at ashbb than anyone else.
>
> I'm trying to create an application with green_shoes (until shoes4 is
> distributed as a gem, I can't really use it), and I'm not finding a
> way to do tests for my application.
>
> Or should I wait until shoes4 is distributed as a gem?
>
>
> - -- 
> James Gifford
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJP3KaDAAoJENbAQRq+BvX7CToH/jA6MHuJ7v+umhK7RxTc56oe
> 0SIeDNvbXym/0XC2S33NziKliT0jKfiG8OfdBv71Y5Rg+yWQbxtk22EF/zGP+v9r
> tFVW7dEqXqA+RI4wop5AycPpwfxEfVXVRSek1v4R3VytL6HzD69EIlUJOoOc1Da/
> fUVzfG5aivJ/vUIla1LbFHMKoRyL/SqYrC4IppeTG6ORvYL113j3sPdONGaswEOj
> EIFZlQ0kMKQ3ZrTeMhNlXhJinsX4uvBG9vJpQVpX4zC3PzJAL6tSGdkt6fQtsRT4
> cwOKR8EkwZtEYkUw7Ooe1Da2h3909WpOA/4mrjqgutDUtn7bssD7dEE61EKLnTI=
> =cUop
> -----END PGP SIGNATURE-----

Re: [shoes] Is there a way to do tests with green_shoes?

From:
Steve Klabnik
Date:
2012-06-16 @ 16:30
Pull all your logic out of the Shoes stuff and just test those classes
themselves.

Re: [shoes] Is there a way to do tests with green_shoes?

From:
ashbb
Date:
2012-06-17 @ 10:47
Hi James,

> I'm trying to create an application
Wow, cool!

> I'm not finding a way to do tests for my application.
Yeah. As Tobi and Steve have already mentioned, I think it's reasonable to
separate GUI stuff and test your logic. ;-)

> Or should I wait until shoes4 is distributed as a gem?
Ah,... even if Shoes 4 is distributed as a gem, it may be difficult to test
GUI stuff itself...

BTW, if you want to use JRuby and SWT, you can use Purple Shoes for now.

http://rubygems.org/gems/purple_shoes

ashbb