Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 276541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:56:11+00:00 2026-05-12T00:56:11+00:00

I admit that I have almost none experience of unittesting. I did a try

  • 0

I admit that I have almost none experience of unittesting. I did a try with DUnit a while ago but gave up because there was so many dependencies between classes in my application.
It is a rather big (about 1.5 million source lines) Delphi application and we are a team that maintain it.

The testing for now is done by one person that use it before release and report bugs. I have also set up some GUI-tests in TestComplete 6, but it often fails because of changes in the application.

Bold for Delphi is used as persistance framework against the database.
We all agree that unittesting is the way to go and we plan to write a new application in DotNet with ECO as persistance framework.

I just don’t know where to start with unittesting…
Any good books, URL, best practice etc ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T00:56:12+00:00Added an answer on May 12, 2026 at 12:56 am

    Well, the challenge in unit testing is not the testing itself, but in writing testable code. If the code was written not thinking about testing, then you’ll probably have a really hard time.

    Anyway, if you can refactor, do refactor to make it testable. Don’t mix object creation with logic whenever possible (I don’t know delphi, but there might be some dependency injection framework to help in this).

    This blog has lots of good insight about testing. Check this article for instance (my first suggestion was based on it).

    As for a suggestion, try testing the leaf nodes of your code first, those classes that don’t depend on others. They should be easier to test, as they don’t require mocks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php file that almost work properly. But then it wouldn't refresh
I have to admit that I'm new to Java and Android. db4o seems to
I have just installed Microsoft Robotics Studio 2008 R2, and I must admit that
I have this simple script that I'm working on. I must admit, I'm totally
I must admit that I'm absolutely new to Expression Trees in C#, but currently
Ok so I have my apps, that takes requests from root / Almost everything
I have an admin that is almost completely ajax driven. When the page loads
I have an admin form that lets users create entities that require an image.
Hey guys I have an admin page that checks if you are admin before
I have a log function on my admin panel that checks user input for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.