All Questions
Tagged with legacy-code testing
8 questions
-1
votes
1
answer
764
views
How to create input data for unit tests for an API client?
I am building the initial set of unit tests for my team's legacy API client system. We have been writing integration tests, but have no unit tests.
It's a Sinatra server that accepts requests from our ...
8
votes
3
answers
3k
views
How do I write unit tests for legacy code (that I don't understand)?
Forward
I've read a lot of things before asking this question, including many relevant
questions right here on SE:
(Software Engineering SE) Writing tests for code whose purpose I don't understand
(...
4
votes
2
answers
3k
views
How to approach the understanding, documentation and validation of legacy code [duplicate]
I've been tasked with studying a Python code, which runs on an orchestrator, which schedule the launch of the code in correspondence of some events. The code imports some modules, and it's basically ...
15
votes
5
answers
7k
views
Why write tests for code that I will refactor?
I am refactoring a huge legacy code class. Refactoring (I presume) advocates this:
write tests for the legacy class
refactor the heck out of the class
Problem: once I refactor the class, my tests in ...
2
votes
2
answers
674
views
Testing a very specific function in a large, complex application
I'm new to testing but wholeheartedly realize how important it is. The main issue is that my company has no top-down support for testing at all. That is we don't have any unit testing and just a bit ...
3
votes
3
answers
3k
views
Effective way to estimate dead code removal?
I've been working in an application with about 100k LOCs and basically We have been reworking features to comply with a new architecture based on a new technology stack. This work is almost finished ...
9
votes
4
answers
2k
views
I have 200k lines of poorly designed code, will units tests or integration tests be more valuable? [duplicate]
I've inherited a lot of poorly designed code; the code has no tests. I am putting tests in place before I attempt a major refactor, but I have run into a problem with my unit tests.
The problem is, I ...
7
votes
1
answer
733
views
Can Test-Driven development work in legacy projects?
So here is a question for you, having read some great answers to questions such as Test-Driven Development - Convince Me.
So my question is: "Can Test-Driven Development be used effectively on non-...