On Fri, Aug 14, 2009 at 12:29 PM, Jeff  Price<[email protected]> wrote:
>
> Dan,
>
> This is a post I ran across from a Ruby guy I know...thought it was
> kinda interesting. I know how much unit testing you do on the back-end
> of things. It seems like a framework that could offer easier access to
> testing would have a killer feature on their hands.

I wrote my own scaffolding-type deal that uses the ORMAdapter (so
theoretically it works with transfer too (haven't tried, but all I use
is the meta-data anyways)).

While I was doing it, I added unit test generation (ripped right from
Grails, idea-wise, ripped from Rails, idea-wise, I reckon).

It's more useful for me tho, because I'm generating model-ish/service
components, basically, vs. using generic commits and whatnot.  Testing
controllers is cool and all (really, it's swell, nobody hesitate to
write "scaffold" tests) but me and my fellow coders were being very
bad and putting a lot of stuff in controllers and *shiver* views, and
scaffolding isn't helping much in that regard...

This is useless for folks hip enough to have models already,
obviously, but I like it better than how scaffolds currently work (tho
Dan has set 'em up much better this go-around, making doing stuff like
this pretty do-able now from within the framework).

I had a prototype of MG that used "moshen" instead of scaffolds
(<moshen object="people" controller="PersonController"
service="PersonService" lotsOfMetadata="yup" /> ) which was kind of
cool, but I just didn't see it making it into MG... and all it really
is, is a ton of cftemplate templates + metadata, so *shrug*, eh.
Project turned sub-project turned project, ho! =]

Plus, it's a kinda hard-lean towards Grails-type stuff, which, lets be
honest, means using the framework as more of a work-horse.  Doing
*tons* of stuff similar to linkTo() in views and whatnot (helper
functions, renderers, etc.-- not even close to agnostic-ish, as in,
quite the opposite).

Anyways, while I'm mentally torn about super-frameworks (Grails), and
active/passive generation is this fun place to explore (there's one
site, where 90% of it works without CF-- go (generated) static
content!), I like messing with the stuff, and I like generating tests
for the stuff I generate (the generated dojo stuff has JS tests,
etc.).

So, long email short-- the new scaffold stuff should be pretty capable
of generating unit tests or what-have-you, for whatever you generate.

-- 
If you are pained by external things, it is not they that disturb you,
but your own judgment of them. And it is in your power to wipe out
that judgment now.
    Marcus Aurelius Antoninus

--~--~---------~--~----~------------~-------~--~----~
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to