I personally only Unit Test Model components in my application. This is because 
the controller generally has too much going on to effectively test.

You would probably need to create a ModelGlue context to do this, since there 
are many ModelGlue utilities available in the controller.

We ( the MG team ) have extensive testing of the framework (using MX Unit) and 
some of those tests require a ModelGlue context. Search in ModelGlue/gesture 
for createModelGlueIfNotDefined  and you will see many unit tests that do this 
very thing.

Should you end up writing a lot of unit tests for your controllers and have 
ideas about ways to enhance this, feel free to share with us.

DW



  




------Original Message------
From: andreacfm
Sender: [email protected]
To: model-glue
ReplyTo: [email protected]
Subject: [Model-Glue] Unit Test
Sent: Jan 3, 2010 5:12 AM

Hi,

how do you actually unit test MG controllers ?

Andrea

-- 
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

Sent from my Verizon Wireless BlackBerry

-- 
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