Testimize 1.1.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package Testimize --version 1.1.6
                    
NuGet\Install-Package Testimize -Version 1.1.6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Testimize" Version="1.1.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Testimize" Version="1.1.6" />
                    
Directory.Packages.props
<PackageReference Include="Testimize" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Testimize --version 1.1.6
                    
#r "nuget: Testimize, 1.1.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Testimize&version=1.1.6
                    
Install Testimize as a Cake Addin
#tool nuget:?package=Testimize&version=1.1.6
                    
Install Testimize as a Cake Tool

Testimize

๐Ÿš€ Smart and scalable test data generation engine for .NET automated testing.

NuGet GitHub license CI NuGet


<p align="center"> <img src="https://github.com/AutomateThePlanet/Testimize/blob/main/testimize_banner_beige_bg.png?raw=true" width="100%" alt="Testimize Banner" /> </p>

โœจ Why Testimize?

Testimize helps you design high-quality, optimized test cases for automated testing with minimal effort.

It supports:

  • โœ… Boundary Value Analysis (BVA)
  • โœ… Pairwise Test Case Generation
  • โœ… Heuristic Optimization (Artificial Bee Colony Algorithm)
  • โœ… Fully-controlled Precise Mode for CI/CD and validation
  • โœ… Rich, extensible DSL for defining valid/invalid inputs and expected error messages
  • โœ… Configuration via JSON files and localization support

๐Ÿ› ๏ธ Installation

dotnet add package Testimize

๐Ÿ“ Modes of Generation

Testimize offers three powerful modes of test case generation:

โœ… 1. Precise Mode

For CI/CD, strict validations, and known input sets. Allows full control over:

  • Specific valid/invalid values
  • Expected validation messages
  • Boundary values
TestimizeEngine
.Configure(
    parameters => parameters
        .AddSelect(s => s
            .Valid("US")
            .Valid("BG")
            .Valid("FR")
            .Invalid("XX").WithExpectedMessage("Country code is invalid")
            .Invalid("U1").WithExpectedMessage("Country code must contain only letters")
            .Invalid("").WithExpectedMessage("Country code is required"))
        .AddSelect(s => s
            .Valid("en")
            .Valid("fr")
            .Valid("de")
            .Invalid("zz").WithExpectedMessage("Language code not supported")
            .Invalid("123").WithExpectedMessage("Language code must be alphabetic"))
        .AddSelect(s => s
            .Valid("EU")
            .Valid("AF")
            .Valid("AS")
            .Invalid("999").WithExpectedMessage("Continent code cannot be numeric")
            .Invalid("X").WithExpectedMessage("Continent code too short")
            .Invalid("").WithExpectedMessage("Continent code is required")),
    settings =>
    {
        settings.Mode = TestGenerationMode.HybridArtificialBeeColony;

        settings.ABCSettings = new ABCGenerationSettings
        {
            TotalPopulationGenerations = 20,
            MutationRate = 0.3,
            FinalPopulationSelectionRatio = 0.5,
            EliteSelectionRatio = 0.5,
            OnlookerSelectionRatio = 0.1,
            ScoutSelectionRatio = 0.3,
            EnableOnlookerSelection = true,
            EnableScoutPhase = false,
            EnforceMutationUniqueness = true,
            StagnationThresholdPercentage = 0.75,
            CoolingRate = 0.95,
            AllowMultipleInvalidInputs = false,
            OutputGenerator = new NUnitTestCaseAttributeOutputGenerator()
        };
    })
.Generate();

โœ… Best for: validation rules, known test inputs, automation suites
โœ… Supports: [TestCase], [TestCaseSource], CSV, JSON


๐Ÿ”„ 2. Pairwise Mode

Generates a minimal set of test cases covering every pairwise combination of parameters.

config.Mode = TestGenerationMode.Pairwise;

โœ… Best for: wide input coverage with low execution time
โœ… Supports: Output generators + category filtering
โœ… Stateless: No heuristics or randomness required


๐Ÿง  3. Exploratory Mode (ABC Algorithm)

Uses a metaheuristic algorithm to explore input combinations based on:

  • Fitness functions
  • Mutation rate
  • Heuristic selection strategies
public static List<IInputParameter> ABCGeneratedTestParameters() =>
TestimizeInputBuilder
    .Start()
    .AddSingleSelect(s => s
        .Valid("US")
        .Valid("BG")
        .Valid("FR")
        .Invalid("XX").WithoutMessage()
        .Invalid("U1").WithoutMessage()
        .Invalid("").WithoutMessage())
    .AddSingleSelect(s => s
        .Valid("en")
        .Valid("fr")
        .Valid("de")
        .Invalid("zz").WithoutMessage()
        .Invalid("123").WithoutMessage())
    .AddSingleSelect(s => s
        .Valid("EU")
        .Valid("AF")
        .Valid("AS")
        .Invalid("999").WithoutMessage()
        .Invalid("X").WithoutMessage()
        .Invalid("").WithoutMessage())
    .Build();

[Test]
[ABCTestCaseSource(nameof(ABCGeneratedTestParameters), TestCaseCategory.Validation)]
public void QueryCountry_WithLanguageAndContinentFilters_ShouldReturn200(
    string countryCode, string languageCode, string continentCode)
{
    // your test logic here
}

โœ… Best for: finding edge cases, fuzzing, unknown test spaces
โœ… Not ideal for: stable CI/CD (unless deterministic seed used)


๐Ÿ”ง Configuration via testimizeSettings.json

{
  "testimizeSettings": {
    "seed": 12345,
    "locale": "en",
    "includeBoundaryValues": true,
    "allowValidEquivalenceClasses": true,
    "allowInvalidEquivalenceClasses": true,
    "abcGenerationSettings": {
      "totalPopulationGenerations": 20,
      "mutationRate": 0.3,
      "finalPopulationSelectionRatio": 0.5,
      "eliteSelectionRatio": 0.5,
      "onlookerSelectionRatio": 0.1,
      "scoutSelectionRatio": 0.3,
      "enableOnlookerSelection": true,
      "enableScoutPhase": false,
      "enforceMutationUniqueness": true,
      "stagnationThresholdPercentage": 0.75,
      "coolingRate": 0.95,
      "allowMultipleInvalidInputs": false
    },
    "inputTypeSettings": {
    //...
    }
}

๐Ÿงฉ Supported Input Types

  • Text, Email, Phone, Password, Username, URL, Address
  • Integer, Decimal, Percentage, Boolean
  • Date, Time, DateTime, Week, Month
  • Currency, GeoCoordinate, Color
  • SingleSelect, MultiSelect

๐Ÿ“ฆ Output Generators

Class Name Description
NUnitTestCaseAttributeOutputGenerator [TestCase(...)] attributes
NUnitTestCaseSourceOutputGenerator IEnumerable<object[]> method
CsvTestCaseOutputGenerator CSV output
JsonTestCaseOutputGenerator JSON test data output

๐Ÿงช Integration & Test Frameworks

โœ… Primary support for:

  • NUnit: with [TestCase] and [TestCaseSource] generation

๐ŸŸก Planned support:

  • xUnit
  • MSTest

๐Ÿ”ฎ Roadmap

  • xUnit and MSTest support
  • Java support
  • Security testing parameters
  • GitHub Action to generate data as part of CI

๐Ÿ“š Samples

See /samples for examples of using Testimize in:

  • โœ… Unit tests
  • โœ… Data-driven tests
  • โœ… Exploratory test generation

๐Ÿ‘ฅ Contributors

Made with โค๏ธ by [@angelovstanton] and the Testimize community.


๐Ÿ“œ License

Licensed under the Apache License, Version 2.0.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.8 133 4/2/2025
1.1.6 80 3/29/2025
1.1.4 76 3/29/2025
1.1.2 81 3/29/2025
1.1.1 73 3/29/2025
1.1.0 77 3/29/2025

- Introduced Precise Mode for full test input control
     - Added Pairwise Mode for lightweight coverage
     - Added ABC Heuristic Generator for exploratory testing
     - Integrated NUnit output generators (TestCase, TestCaseSource)
     - Config-driven generation via JSON
     - Faker-based localized values support
     - 20+ supported input types
     - Optimized for TDD and CI pipelines
     - .NET 8 Support