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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:16:58+00:00 2026-06-17T08:16:58+00:00

ApprovalTests looks great for legacy code, but the problem is my legacy code runs

  • 0

ApprovalTests looks great for legacy code, but the problem is my legacy code runs in an appserver and redeploying the app takes > 2 minutes. Because of this, I’m concerned the feedback loop of running the approval test would make me not want to run it very often. I’d probably end up changing more code without testing as often and probably get into a repeating pattern of “change->test->fail->revert”.

Can anyone give me advice on how to use ApprovalTests with legacy code that takes a long time to deploy? Is this exactly what I should expect to deal with or am I writing this test in the wrong way?

  • 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-06-17T08:16:59+00:00Added an answer on June 17, 2026 at 8:16 am

    I got an answer from the creator of the product:

    So the concern you have is “change->test->fail->revert”
    and this happens, but with smaller and more careful changes you should be able to make good progress, and failing shouldn’t be rule, but an exception.
    Also, remember that in legacy the motto is better, not good. use this test until you refactor enough to get a test that doesn’t require an appserver. then you move faster.
    approvaltests in and of themselves do not need to be big or slow, it is only verification. it’s the doing of the test that is big or slow, and while approvaltests work great for that, it by no means a suggestion or recommendation that those are the kinds of tests you want.

    Then I asked:

    Are you saying, “approvaltests lets you test this way, but that’s not a good way to use approvaltests”? If I’ve interpreted that correctly, what would be a better approach?

    And he replied:

    yes. approvaltests let you test this way.
    it’s not a good way to unit test.
    it is most likely the best way to unit test you currently have.
    use it until you refactor to a better way to unit test (one that doesn’t require a server)

    Hope this helps someone else with the same question.

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

Sidebar

Related Questions

Can I use ApprovalTests with PDF's? I tried using the FileLauncher but it seems
I have the following code (testing in a .NET console application): var client =
I am using Approval Tests . On my dev machine I am happy with
I was reading the documentation of ApprovalTest - Getting Started.pdf ( it's in the
When I try to use approvals with my unit test decorated with [Theory] attribute
i need to load a checkbox dynamically and set its state based on some
I've been using approval-tests for a while with the WinMergeReporter and it is working
I'm using Approval Tests and WatiN to test the integration of my ASP.NET MVC2
I have a table called ApprovalTasks... Approvals has a status column I also have

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.