A quick and easy TODO

2 views
Skip to first unread message

Chad Myers

unread,
Feb 11, 2010, 1:59:02 PM2/11/10
to fubumv...@googlegroups.com
If someone is looking for a quick, easy way to contribute something to FubuMVC that doesn't require a lot of working knowledge of the guts of FubuMVC, I have an idea for you:

(I'll be updating the Fubu wiki TODO page with this in a minute)

After sharpoverride's last post, it occurred to me that we'll probably be getting a lot of questions like "How come my routes didn't work out the way I wanted them to?"

We added diagnostics in an effort to help people figure out things, but I fear it's not going to be enough and it'll still be very easy for people (even experts) to get things jumbled up and have routes come out the wrong way.

There's already some integration tests for FubuRegistry in the Fubu code. 

Proposal:  What if we had a real easy way for people to write a simple unit test that expresses their desired outcome.  If they have a problem (i.e. failing test), they can send us their FubuRegistry and the failing unit test and it'll cut through a lot of confusion real quick.  It'll help us determine what's wrong (user error or honest bug in Fubu) quickly and resolve the issue without a lot of fuss.

For example, what if you could send us your MyCustomFubuRegistry and a test that looks like:


// How come my input model doesn't match to my expected route?
using<MyFubuRegistry>()
   .RouteFor<SomeInputModel>()
   .ShouldResolveTo("/some/foo")

or

// How come my route doesn't take in an input parameter?
using<MyFubuRegistry>()
   .RouteFor<SomeInputModel>()
   .ShouldResolveTo("/some/foo/{Id}")


or

// How come this route doesn't hit the action I expected?
using<MyFubuRegistry>()
    .Route("/some/foo")
    .ShouldCall<SomeController>(c => c.Foo(null))


-Chad


jmarnold

unread,
Feb 11, 2010, 4:31:32 PM2/11/10
to FubuMVC Development Group
This would be fantastic! I'd love to work on this but I know I don't
have enough time to commit to it if I want to turn it around in the
near future. I'd be more than happy to help out if anyone wants to
lead this.

jmarnold

unread,
Feb 12, 2010, 6:22:48 PM2/12/10
to FubuMVC Development Group
Has anybody picked this up yet?

Chad Myers

unread,
Feb 12, 2010, 7:14:14 PM2/12/10
to fubumv...@googlegroups.com
Nope. Josh and I spoke on it briefly via IM.

He noted that you wouldn't just be able to package up your fubu registry without packaging up your whole project. He's right.

So instead, I think we need to make testing expressions for their FubuRegistry more expressive and dump out more info and diagnostics in the test failure messages so that they can just sent us the test failure message and it will tell us everything.

Perhaps it could even have a dump-file mode and they could send that to us directly.

-CHad

--
You received this message because you are subscribed to the Google Groups "FubuMVC Development Group" group.
To post to this group, send email to fubumv...@googlegroups.com.
To unsubscribe from this group, send email to fubumvc-deve...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fubumvc-devel?hl=en.


Reply all
Reply to author
Forward
0 new messages