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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:48:10+00:00 2026-05-10T22:48:10+00:00

I have a number of projects in a solution file that have unit tests

  • 0

I have a number of projects in a solution file that have unit tests written for them and I want to set them up to be run by our continuous integration server. However, because many of the tests have been written poorly and have not been run regularly, there are many that are failing.

I don’t have the time at the moment to fix all of the tests, but I do believe there is value in having the existing tests run. What is the best way do deal with the failing unit tests?

What I am currently doing is marking each failing test as Explicit and leaving a TODO comment.

[Test, Explicit] //TODO: Rewrite this test because it fails 

Is there a better way of doing this? Or should I fix all the tests before including them in the tests that are run by the CIS?

  • 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-10T22:48:10+00:00Added an answer on May 10, 2026 at 10:48 pm

    Well, in NUnit you have the option to ignore tests using the ignore attribute:

    [Test, Ignore('Test needs rewrite')] 

    Personally though, there are two things that I do with such tests:

    • Delete them if I don’t understand the test, or if the test is out of date/out of synch with current specs
    • Refactor it to the correct spec if the fix is trivial

    Gleaning from what you’ve written I would suspect that many of those failing tests are out of date and may not be relevant in the first place, so I think it would be fine to delete them.

    There’s no point in keeping a test that nobody understands anyway.

    UPDATE: Oren Eini has a blog post which outlines most of how I feel about activating old, failing tests:

    The tests has no value by themselves: My most successful project didn’t have any tests

    To quote:

    Tests are a tool, and its usage should be evaluated against the usual metrics before applying it in a project. There are many reasons not to use tests, but most of them boil down to: ‘They add friction to the process’.

    If retrofitting old, failing tests adds friction to the process, maybe it isn’t worth updating them at all.

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

Sidebar

Related Questions

We have added a number of Office AddIn projects to our TFS-built solution and
I have a number of solutions with a large number of projects in them.
We have a number of projects that use the same and/or similar package names.
I've been thinking about the number of projects we have in-house that are still
I have a C# method that projects the value of a number from an
I have a visual studio (2005) solution file with 70 projects. Each time I
I have a revision.txt file in my SVN project. Basically I want that this
I have a VS 2008 solutions that includes a number of projects including a
I have a series of Eclipse projects containing a number of plugins and features
I have a project that has a revision number of 3960. But unfortunately it

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.