Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  How to test Module?
Previous Previous
 
Next Next
New Post 4/26/2008 11:03 PM
User is offline pullp
34 posts
10th Ranked


How to test Module? 

Hi,

After jumping throughout forums and Googling, finally I am getting closer to my first module in DNN.

The biggest question I have is how do I test my module (Like testing/debugging .aspx page in Web site project while developing) without having to deploy to DNN ?

How does everyone go about their Unit testing? Any strategies?

 
New Post 4/27/2008 2:50 AM
User is offline Bruce Chapman
110 posts
www.iFinity.com.au
9th Ranked


Re: How to test Module? 

pullp

I do unit testing via Visual Studio Testing. I use code generators to generate the base classes for my modules, and the code generators output unit tests for the code as well.  I use a database-driven test to check all the database input/output code.  This helps to make sure any changes to the save/get code don't break existing code.  I've written about this process in a 'code project' article before - it's pretty easy to find.

For a UI testing setup, I tend to load up my module in a solution by itself - with the main module (including .ascx and .ascx.cs files), the data provider the only projects in the solution.  I write a short .cmd file which copies the relevant files (.dll, .css,  .jpg, .ascx, .js etc) across to the correct location in the local dnn install.   So then, you build your solution in vs, run the .cmd file (if you get excited you can make the .cmd file run as part of the build), and then attach the debugger to asp.net.

This setup saves having to load the entire solution into vs and speeds up compile time considerably.  You just set your breakpoints and the code should hit and break them.

Note this all applies to a PA style module development, which, IMO, is more difficult but infinitely worth it in terms of version control and deployment.  Putting code into app_code directories is easy to develop but much hard to control as a deployment. 


Do you need a DotNetNuke Developer? and Free DotNetNuke Downloads
 
New Post 4/27/2008 4:05 AM
User is offline Sebastian Leupold
15057 posts
www.deutschnetnuke.de
1st Ranked












Re: How to test Module? 

please check out


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 4/27/2008 5:15 PM
User is offline pullp
34 posts
10th Ranked


Re: How to test Module? 

Thank you both for the info..That will get me started on unit testing framework.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How to test Module?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Multipartner Virtual Data Rooms
The Virtual Data Rooms (VDR) provided by an expert advisor, far from any ordinary software company!, supporting the sellers and their consultants. Multipartner builds and services higly professional Virtual Data Rooms (VDR) specifically tailored to M&A, Real Estate and NPL deals.
www.multipartner.com
DNN SEO
Seablick Consulting specializes in DNN search engine optimization (SEO), DNN consulting, as well as support & training.
seablick.com
Intura Vision / Intura Enterprise
Point-of-Sale and business management applications targeted towards quick service, fast casual and delivery-based restaurant concepts.
www.intura.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP