Building and running tests
You can build the project using either Visual Studio 2010 IDE, or from the command line using msbuild.exe from .NET Framework 4.0.
To build from the command line, open a command line shell that has msbuild.exe in the path, go to the root directory of the repository clone (the directory containing Laharsub.sln), and call
You should see no errors or warnings.
Similarly, to build the product and the tests from Visual Studio 2010 IDE, use the Laharsub.sln solution.
Regardless of the build method, all build deliverables are located in the
subdirectory of the repository clone, as described in
Enlisting and repository structure
Unit tests can be run from within Visual Studio 2010 IDE, or from the command line using the mstest.exe from Visual Studio 2010 package.
To run tests from Visual Studio 2010 IDE, open the Laharsub.sln solution and then invoke
Test|Run|All tests in a solution
(shortcut Ctrl-R,A). Standard test setting enable gathering code coverage data.
To run tests from the command line, open the Visual Studio Command Prompt (2010) window (or a regular cmd.exe window with mstest.exe on the path). NOTE: the window must be running with administrative privileges, as some of the unit tests create HTTP listeners
(right click the shortcut, choose Run As Administrator). In the command line, go to the root of the repository clone and run:
All tests should pass. If some of them fail, make sure you are running with administrative privileges.
Laharsub build contains a few samples in the build\vroot directory. These can be used for additional manual testing and experimentation. Read more about it in
Using the product