• Stars
    star
    383
  • Rank 111,995 (Top 3 %)
  • Language Pascal
  • License
    Apache License 2.0
  • Created over 11 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Delphi Unit Test Framework

DUnitX Overview

DUnitX is a new test framework, taking ideas from DUnit, NUnit and other test frameworks. It is designed to work with Delphi 2010 or later, it makes use of language/RTL features that are not available in older versions of Delphi.

DUnitX Features

  • Any class can contain tests
  • Attribute based testing
  • An extensive Assert Class
  • Setup and TearDown per test method and per test fixture.
  • API Documented using Xml-Doc
  • Console Based Runner
  • XML Logging
    • produces output compatible with NUnit (compatible with CI servers like ContinuaCI)
    • produces output compatible with JUnit (compatible with Gitlab CI)
  • Cross platform currently supporting:
    • Win32,Win64 and OSX Compilers.
  • Limited backwards compatibility with DUnit test classes.
  • Wizard for creating new tests.

DUnitX Planned Features

This is far from a complete list, but a few planned features are listed here to help indicate future direction.

  • GUI Test Runner - Use TestInsight
  • Multi-threaded tests - the ability to have test fixtures run in their own threads.
  • Remote logging - Simple way to run tests on remote machines (just an idea at this point)
  • Data driven test cases - the ability to provide a test method with a data source and test each entry in the data source. The data source will be virtualised so it can be anything (text file, db table etc).

Tips and Tricks

  • In order to workaround the Delphi XE3 Bug, you need to add the unit DUnitX.Init to your test projects.
  • To use this GitHub version of DUnitX in place of the bundled version included with RAD Studio, it’s pretty simple by following these steps (as the bundled version is quite a few commits behind this repo):
    • Remove the Embarcadero Unit test package (DUnitXIDEExpertXXX.bpl) from the installed packages list.
    • In the cloned repo, open DUnitX_IDE_Expert_XXXX.dproj (matching your Delphi version), compile and install the package.
    • In your unit test projects, adjust your search paths to point to the repo\Source folder.

Support

A Delphi Praxis Forum has been setup to discuss DUnitX.

Contributors

A recent list of contributors can always be obtained on GitHub.

License

Apache Version 2.0 Copyright (C) 2012-2016 Vincent Parrett [email protected]
http://www.finalbuilder.com

See license.txt for details.

More Repositories

1

Delphi-Mocks

A Open Source Mocking framework for Delphi XE2 or later
Pascal
228
star
2

VSoft.CommandLineParser

Simple Command Line Options Parser - part of the DUnitX Project
Pascal
90
star
3

VSoft.Awaitable

Async/Await for Delphi
Pascal
52
star
4

VSoft.Messaging

Simple internal application messaging for Delphi
Pascal
50
star
5

VSoft.WeakReferences

Weak References for delphi
Pascal
29
star
6

DUnit-XML

XML Reporter for DUnit which outputs NUnit compatible XML
Pascal
22
star
7

VSoft.HttpClient

WinHTTP Client for Delphi
Pascal
21
star
8

Delphi-Fluent-JSON

Fluent JSON Writer for Delphi
Pascal
19
star
9

Simple-IoC

A Simple IoC Container for Delphi 2010 or later
Pascal
18
star
10

VSoft.SemanticVersion

Semantic Version Parser for Delphi
Pascal
16
star
11

VSoft.VirtualListView

Owner drawn virtual list view for Delphi
Pascal
13
star
12

VSoft.CancellationToken

This is a simple library for Delphi that provides a CancellationTokenSource and CancellationToken much like those in .NET
Pascal
12
star
13

VSoft.Ulid

Universally Unique Lexicographically Sortable Identifier
Pascal
11
star
14

Delphi-Fluent-XML

Fluent XML writer for Delphi
Pascal
11
star
15

DelphiCodeCoverageExample

An example of how to run code coverage in Delphi
HTML
10
star
16

VSoft.Uri

Simple Uri Parser library for Delphi
Pascal
9
star
17

VSoft.UUIDv7

A Delphi implementation of a UUID v7 Generator
Pascal
8
star
18

VSoft.AntPatterns

Pascal
7
star
19

DPackGen

DPackGen delphi dpk/dproj generator
Pascal
4
star
20

FinalBuilder.Examples

Example FinalBuilder Projects
3
star
21

playground

Just a playground for messing with github api
2
star
22

ChocolateyPackages

VSoft Chocolatey Packages
PowerShell
2
star
23

VSoft.Extensions.Hosting.Halibut

Microsoft.Extensions.Hosting support for Halibut
C#
2
star
24

cdn-images

Repo for VSoft product icons and images
2
star
25

FinalBuilder-VSO

A Team Foundation Build task for running FinalBuilder projects
PowerShell
2
star
26

VSoft.OperationResult

Pascal
2
star
27

Spring4DMirror

A mirror of Spring4D from bitbucket - just for hosting DPM packages for now - this is temporary.
Pascal
1
star
28

Automated-UI-Testing

Automated UI Testing Done Right
C#
1
star