Live data from Hacker News

Survey: Python vs Ruby Test Ecosystems

nvie.com

1–10 of 16 posts

Re: Survey: Python vs Ruby Test Ecosystems

#6
I recently started developing for Google App Engine after several years working with Rails, and my sense is that Python testing (at least on App Engine) is seriously behind the Ruby/Rails world.

GAE is especially hard to test because you essentially run it in an emulator locally. It's also pretty bare-bones, so you don't get the free testing tools you get with Rails, like fixtures (love 'em or hate 'em, at least they can get you started) and a test runner.

Sure, you can set all that stuff up (and I do) but it sucks having to do a bunch of grunt work that's done for you in Rails.

FWIW, my preferred testing setup in Rails is Shoulda with Mocha for mocking and my own fixie library for pre-populating test data (it's faster than factory_girl) and factory_girl if I find I need it. I think acceptance testing with Cucumber is over rated and I'll be damned if I'm going to program in English, so I do not bother.

For GAE, I'm using gaetestbed and writing a lot of helper functions.

Re: Survey: Python vs Ruby Test Ecosystems

#7
I know he made a little "bait" comment but at least he admits the simple inability for python to seriously host DSLs. If you look at any python port of a DSL (sinatra clone, cucumber clone, whatever) it's just simply ugly. It's STILL python code.

Re: Survey: Python vs Ruby Test Ecosystems

#8
post #6

I recently started developing for Google App Engine after several years working with Rails, and my sense is that Python testing (at least on App Engine) is seriously behind the Ruby/Rails world. GAE is especially hard to test because you essentially run it in an emulator locally. It's also pretty bare-bones, so you don't get the free testing tools you get with Rails, like fixtures (love 'em or hate 'em, at least they…

I don't think it is fair to base your impression on GAE. GAE is a very particular platform.

I am not so familiar with testing for web applications, but nose on python certainly supports test runners, fixtures, etc... I am actually surprised you can get a testing framework without those

Re: Survey: Python vs Ruby Test Ecosystems

#10
post #7

I know he made a little "bait" comment but at least he admits the simple inability for python to seriously host DSLs. If you look at any python port of a DSL (sinatra clone, cucumber clone, whatever) it's just simply ugly. It's STILL python code.

Ruby DSLs still look like Ruby code, too; it just has a laxer lexer. For a reality check, look at DSLs in Forth or Prolog sometime. Many Ruby DSLs are :covered with? accent "marks", though, like Romanized Vietnamese* . You're probably just used to it.

* e.g. http://en.wikipedia.org/wiki/Cà_phê_sữa_đá

Post reply on HN