Debugging Unit Tests

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(New page: Debugging unit tests is useful for both test driven development and resolving build failures. == Debugging Unit Tests with Vistual Studio == 1) Download and install NUnit which includes...)
 
m (Debugging Unit Tests with Vistual Studio)
Line 7: Line 7:
 
2) Start NUnit GUI
 
2) Start NUnit GUI
  
3) Open project and choose the test dll you want from OpenSim/bin directory (for example OpenSim.Data.MySQL.Tests.dll)
+
3) Enable Visual Studio Support from Tools->Options-IDE Support->Visual Studio
  
3) Open your OpenSim solution to Visual Studio.
+
4) Open project and choose the test dll you want from OpenSim/bin directory (for example OpenSim.Data.MySQL.Tests.dll)
  
4) Attach NUnit GUI process to Visual Studio by choosing Debug -> Attach to Process.
+
5) Open your OpenSim solution to Visual Studio.
  
5) Set break points in visual studio.
+
6) Attach NUnit GUI process to Visual Studio by choosing Debug -> Attach to Process.
  
6) Execute unit tests from NUnit GUI and Visual Studio should let you debug at the chosen break points.
+
7) Set break points in visual studio.
 +
 
 +
8) Execute unit tests from NUnit GUI and Visual Studio should let you debug at the chosen break points.

Revision as of 04:57, 3 January 2009

Debugging unit tests is useful for both test driven development and resolving build failures.

Debugging Unit Tests with Vistual Studio

1) Download and install NUnit which includes NUnit GUI.

2) Start NUnit GUI

3) Enable Visual Studio Support from Tools->Options-IDE Support->Visual Studio

4) Open project and choose the test dll you want from OpenSim/bin directory (for example OpenSim.Data.MySQL.Tests.dll)

5) Open your OpenSim solution to Visual Studio.

6) Attach NUnit GUI process to Visual Studio by choosing Debug -> Attach to Process.

7) Set break points in visual studio.

8) Execute unit tests from NUnit GUI and Visual Studio should let you debug at the chosen break points.

Personal tools
General
About This Wiki