JustMock

Note

You can download the Telerik.JustMock.NAnt.dll from here.

NAnt is a free and open source software tool for automating software build processes. It targets the .NET environment.

NAnt is an XML-based language where you order tasks to perform build operations.

This topic demonstrates how to integrate Telerik JustMock with a NAnt build task.

To learn more about NAnt refer to NAnt official website.

How to run your unit tests from a NAnt task

  1. Open your NAnt project and under the Project\Target node include Telerik JustMock assembly for integration with NAnt. The assembly is named Telerik.JustMock.NAnt.dll and can be downloaded from here.

    CopyXML
    <loadtasks assembly="C:\Program Files (x86)\Telerik\JustMock\Libraries\Telerik.JustMock.NAnt.dll" />

    Note
    Remember to change the assembly path to the one specific for you system.
  2. Before running a test, execute the following:

    CopyXML
    <justmockstart />
  3. After running a test, execute the following:

    CopyXML
    <justmockstop />

See Also