This project is read-only.

Query regarding Tests and Specs

Topics: General
Apr 8, 2011 at 5:28 PM
Edited Apr 8, 2011 at 5:29 PM

I'm working on implementing Manage User permissions as discussed in another thread.

Obviously I want to write comprehensive tests to ensure scenarios like: "User with ManageUser permission (but not SiteOwner) should not be able to edit or delete a user who has SiteOwner permission".

I've been looking at some of the stuff in Orchard.Specs and it looks like some of these tests could be described quite nicely in the SpecFlow syntax. But is that the right place to do so or should I just be implementing them as Controller tests?

Apr 8, 2011 at 7:50 PM

It does seem like the right place to me.

Apr 8, 2011 at 8:45 PM

I suspected so; just having never seen SpecFlow before it's all a bit mind-blowing. Looks amazing tho and fills in what I always saw as the missing link for TDD in web applications.