Giter VIP home page Giter VIP logo

delphi-autofixture's Introduction

Delphi-Autofixture

Based on ideas from the .NET Autofixture. Requires Delphi Mocks to be installed

uses DUnitX for unit testing.

There are 3 basic things needed for unit tests in delphi.

  1. A unit testing framework, like DUnitX (Included in Delphi and is recommended)
  2. A way to mock classes, which can be done with a mocking framework like Delphi Mocks or Spring4d
  3. A way to generate test data, which can be done easily using AutoFixture.

AutoFixture is created to be an easy way to generate test data.

Features

At a peek AutoFixtures has the following features

  • Creates objects and initialize them with dummy data for test purposes
  • Can initialize entire object hierarchies
  • Highly configurable - how much data do you want, and how should it be initialized
  • Integrates with mocking, and provides easy creation, setup and injection of mocks

Future

The following features are not ready, but work is in progress

  • Handling of multiple mocks of the same type - currently only one mock object of each class can be active.
  • Easy setup of multiple mock objects at once.

delphi-autofixture's People

Contributors

hykke avatar

Stargazers

 avatar

Forkers

atkins126

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.