DUnitX Documentation

repository·master·Indexed 19 days ago

https://github.com/vsofttechnologies/dunitx

A modern, attribute-based testing framework for Delphi 2010 and later. DUnitX provides cross-platform testing for Win32, Win64, and OSX, featuring NUnit and JUnit compatible XML logging, a built-in console runner, and a comprehensive Assert class.

Tokens
441
Snippets
0
Records
4
Agent score
15%

What's inside DUnitX

  1. Key features of DUnitX

    master

    DUnitX provides several core capabilities for Delphi developers:

    • Attribute-based testing: Use attributes to define tests within any class.
    • Flexible Test Structure: Supports Setup and TearDown at both the individual test method level and the test fixture level.
    • Extensive Assertions: Includes a comprehensive Assert class for validating test conditions.
    • Multiple Logging Formats:
      • NUnit compatible XML: Useful for CI servers like ContinuaCI.
      • JUnit compatible XML: Useful for GitLab CI unit test reports.
    • Console Runner: A built-in runner for command-line execution.
    • Cross-platform support: Currently supports Win32, Win64, and OSX compilers.
    • Backward Compatibility: Offers limited compatibility with existing DUnit test classes.
  2. Replace bundled RAD Studio DUnitX with GitHub version

    master

    If you want to use the latest version of DUnitX from this repository instead of the version bundled with RAD Studio, follow these steps:

    1. Remove the existing package: Remove the Embarcadero Unit test package (DUnitXIDEExpertXXX.bpl) from your installed packages list in the IDE.
    2. Install the repository version: In the cloned DUnitX repository, open the DUnitX_IDE_Expert_XXXX.dproj file that matches your specific Delphi version. Compile and install this package.
    3. Update Search Paths: In your individual unit test projects, update your search paths to point to the repo\Source folder of the cloned repository.