Building and running tests

Building

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

msbuild 

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 build subdirectory of the repository clone, as described in Enlisting and repository structure.

Running tests

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:

cd build\bin
mstest /testcontainer:Laharsub.Wcf.Server.Test.dll

All tests should pass. If some of them fail, make sure you are running with administrative privileges.

Manual tests

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.

Last edited Jul 12, 2010 at 12:10 AM by tjanczuk, version 5

Comments

No comments yet.