screamuing developers

Announcing Typemock Isolator Version 9.2.2: Unit Testing on Linux with dotnet core

We are thrilled to introduce Typemock Version 9.2.2, packed with exciting new features and improvements. One of the most notable additions is the ability to run unit tests on Linux machines using .NET Core. This empowers developers to leverage Typemock’s powerful mocking and isolation capabilities in their Linux-based projects. Let’s take a closer look at how to make the most of this exciting update.

To get started, you’ll need to deploy Typemock on your Linux agent. This involves installing two essential components:

  1. TMockRunner.sh: This script serves as the entry point for running your unit tests.
  2. MockWeaver.so: This dynamic library provides the necessary functionality for mocking and isolating code during the test execution.

For detailed instructions on deploying Typemock on a Linux agent, refer to the official documentation at Deploying on Linux Agent.

Once you have Typemock deployed on your Linux machine, you can start running your tests using the TMockRunner.sh script. Here’s an example command:

Let’s break down the above command:

  • -r <YourKey> <YourCompany>: Replace <YourKey> with your Typemock license key and <YourCompany> with your company name. This ensures that you have the necessary licensing and authorization to use Typemock.
  • -d src/autodeploy: This flag specifies the directory where the MockWeaver.so library is located.
  • dotnet test src/examples/Typemock.Examples.CS.Core.dll: This part of the command instructs the TMockRunner.sh script to run the tests contained in the Typemock.Examples.CS.Core.dll assembly, located in the src/examples directory.

After executing the TMockRunner.sh command, you should see the following output:

This signifies that Typemock has been successfully deployed and your tests have been executed. In this example, all 106 tests passed, demonstrating the effectiveness of Typemock’s powerful testing capabilities.

With Typemock Version 9.2.2, developers can now seamlessly incorporate unit testing into their Linux-based projects using .NET Core. This opens up a world of possibilities, allowing you to ensure code quality, identify and fix issues early, and ultimately deliver robust and reliable software.

Upgrade to Typemock Version 9.2.2 today and experience the convenience and power of running unit tests on Linux with .NET Core. Visit our website at https://www.typemock.com to download the latest version and explore the full range of features and benefits Typemock has to offer.

Happy testing!

Tags: