This project is read-only.

Unit testing in Orchard

Topics: Customizing Orchard
May 5, 2014 at 3:49 AM
Hi I am new to Orchard

I'd like to know the best methodology for adding a test project for a custom module to the Orchard Framework.

For example if I have a module called New.Module, I would like to make a Test project called New.Module.Tests

The reason I ask for a specific method is because I know Orchard has a way to add modules using the command line which gives you the minimum required references for that module and I wanted to know if there is any automated/special process to add a unit test project.

Thanks for any help.

May 6, 2014 at 11:42 AM
codegen moduletests <module-name> :-)

While the initial excitement and happiness lasts, would you mind adding a few lines about this command to the docs? :-)
May 7, 2014 at 1:34 AM
Thanks very much for that. I'm also new to the docs section can you give me an idea to which part I should be adding it to?

May 7, 2014 at 1:39 AM
May 7, 2014 at 4:53 AM
Okay I think its done.

Thanks for the help again
May 7, 2014 at 11:10 AM
Thank you and congrats for your first Orchard contribution!