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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:44:54+00:00 2026-05-10T17:44:54+00:00

During software development, there may be bugs in the codebase which are known issues.

  • 0

During software development, there may be bugs in the codebase which are known issues. These bugs will cause the regression/unit tests to fail, if the tests have been written well.

There is constant debate in our teams about how failing tests should be managed:

  1. Comment out failing test cases with a REVISIT or TODO comment.

    • Advantage: We will always know when a new defect has been introduced, and not one we are already aware of.
    • Disadvantage: May forget to REVISIT the commented-out test case, meaning that the defect could slip through the cracks.
  2. Leave the test cases failing.

    • Advantage: Will not forget to fix the defects, as the script failures will constantly reminding you that a defect is present.
    • Disadvantage: Difficult to detect when a new defect is introduced, due to failure noise.

I’d like to explore what the best practices are in this regard. Personally, I think a tri-state solution is the best for determining whether a script is passing. For example when you run a script, you could see the following:

  • Percentage passed: 75%
  • Percentage failed (expected): 20%
  • Percentage failed (unexpected): 5%

You would basically mark any test cases which you expect to fail (due to some defect) with some metadata. This ensures you still see the failure result at the end of the test, but immediately know if there is a new failure which you weren’t expecting. This appears to take the best parts of the 2 proposals above.

Does anyone have any best practices for managing this?

  • 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. 2026-05-10T17:44:55+00:00Added an answer on May 10, 2026 at 5:44 pm

    I would leave your test cases in. In my experience, commenting out code with something like

    // TODO:  fix test case 

    is akin to doing:

    // HAHA: you'll never revisit me 

    In all seriousness, as you get closer to shipping, the desire to revisit TODO’s in code tends to fade, especially with things like unit tests because you are concentrating on fixing other parts of the code.

    Leave the tests in perhaps with your ‘tri-state’ solution. Howeveer, I would strongly encourage fixing those cases ASAP. My problem with constant reminders is that after people see them, they tend to gloss over them and say ‘oh yeah, we get those errors all the time…’

    Case in point — in some of our code, we have introduced the idea of ‘skippable asserts’ — asserts which are there to let you know there is a problem, but allow our testers to move past them on into the rest of the code. We’ve come to find out that QA started saying things like ‘oh yeah, we get that assert all the time and we were told it was skippable’ and bugs didn’t get reported.

    I guess what I’m suggesting is that there is another alternative, which is to fix the bugs that your test cases find immediately. There may be practical reasons not to do so, but getting in that habit now could be more beneficial in the long run.

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

Sidebar

Ask A Question

Stats

  • Questions 113k
  • Answers 113k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer First, the project you describe sounds (and I believe this… May 11, 2026 at 10:06 pm
  • Editorial Team
    Editorial Team added an answer You will either have to save the list you want… May 11, 2026 at 10:06 pm
  • Editorial Team
    Editorial Team added an answer You use the prepend function: $('body').prepend('My HTML elements'); May 11, 2026 at 10:06 pm

Related Questions

Reading about the G.729 codec , I found this interesting tidbit about Comfort Noise
I work in an Oracle shop. There's a toolset that consists of roughly 1000
My new ASP.NET MVC Web Application works on my development workstation, but does not
I have a product, X, which we deliver to a client, C every month,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.