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 6180433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:50:38+00:00 2026-05-24T00:50:38+00:00

I have recently noticed that my test code is too close to the production

  • 0

I have recently noticed that my test code is too close to the production code. I notice that the test architecture (and the maintenance of it) draws a lot of time and energy from the actual product development while every change in the production code requires, at least, the same amount of effort (and risk!!!) in the test code. And what’s worse is that I don’t feel I get that much bang-for-the-buck.

What I would like to achieve is to test my code from a much higher level. I would like to verify the desired behaviour not necessarily test the implemented function.

I don’t know if you’ve noticed but the very best manual test cases explain what to verify not how to verify it. I feel that if I could write my automated tests according to the same paradigm, the actual test would be isolated from the current implementation and I would be assured that the quality of my test infrastructure doesn’t degrade over time due to re-factoring caused by changes in the production code.

I guess I’m not that popular by now and I’m afraid my next coming thoughts won’t make me more popular either:

I think most of modern testing (and now I’m talking about “industry modern” not “research modern”) is taken to the extremes. We are expected to write test code that behave much like the Borg collective; the production code must be completely assimilated (resistance is futile 🙂 ), each and every cell and transistor must be tested by multiple tests (don’t forget the negative test cases), preferably before implementation.

Yes, I might be exaggerating a bit, but only in the interest of making my point clear. Nevertheless: I don’t think we’re actually interested in what is happening in each single class or function. Most of us don’t even bother to look at the test results for the individual functions as long as the class is tested “green”. In the same manner I’m not sure I have the time to be interested in unit tests and alike as long as the behaviour of my code is verified to be predictable and expected.

So, what say ye? Am I walking down the wrong path? Is there a practical way of testing behaviour instead of functionality? And above all: Will I survive your wrath caused by this question?

  • 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-24T00:50:38+00:00Added an answer on May 24, 2026 at 12:50 am

    Have you taken a look at BDD – Behavior Drivern Design/Development?

    There are several very good tools helping you write stories and executing them against the code running the whole or parts of the app under test.

    I have been using jBehave, but there are other tools, as well.

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

Sidebar

Related Questions

I have a test wordpress intallation on localhost and recently I noticed the administration
Hi I have recently noticed that when Running the function geoCoder.getFromLocationName() on android 2.2
I have recently noticed that stack overflow for security reasons does not allow framing.
I have recently noticed that stack overflow for security reasons does not allow framing.
I have recently noticed that inside the collection objects contained in System.Collections.Concurrent namespace it
I have been using Rstudio a great deal these days but recently noticed that
I have a textField inside a tableViewCell. I recently noticed that if I enter
I'm have a lot of time using hibernate (JPA) in java, but i recently
I have recently noticed that nobody uses views in my company (and it's a
I've recently began using dTrace and have noticed just how awesome it is. Its

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.