Running Tests on Linux with TMockRunner

TMockRunner.sh allows you to run your .NETCORE unit tests on Linux machines.

To run TMockRunner.sh:

Deploy Typemock on your Linux agent:

See Deploying On Linux Agent.

Then, to run tests:

Get your unit testing project on your Linux machine.

On your Linux agent, make sure that your current working directory is where you put TMockRunner.sh and MockWeaver.so and run TMockRunner.sh as follows:

Usage: ./TMockRunner.sh -register <license key> <company name> -deploy <deployment dir> [-logpath <log path dir>] [-help] dotnet test [flags and projects]
Example: /TMockRunner.sh -r YourKey YourCompany -d ../autodeploy dotnet test Typemock.Examples.CS.Core.dll

Parameter

Description

-r, -register <key> <company>

Required. Your build server license information.

-d, -deploy <path>

Required. The directory to which Typemock will be delpoyed.

-l, -logpath <path>

The path to write diagnostic logs.

-help

Displays usage of TMockRunner.sh