Get Testing out of your Tech Debt

Rate this content
Bookmark

Technical debt and testing have a long and entangled history. Across many organizations, teams struggle to define “technical debt” and what should fall into the “tech debt” bucket. Testing commonly suffers the fate of being categorized as tech debt, and consequently isn’t prioritized. Defining tech debt, and even rebranding it, can help your team to prioritize testing and reduce the negative stigma around tech debt.

This talk has been presented at TestJS Summit - January, 2021, check out the latest edition of this JavaScript Conference.

FAQ

Carly categorizes tasks like scaling, certain types of testing, upgrades, maintenance, and bug fixes as tech debt, considering these tasks as part of the 'junk drawer' of software engineering.

Carly suggests applying more structure and rigor around deciding what qualifies as tech debt, focusing on issues that primarily impact the developer rather than the user. She emphasizes that tech debt should be about making developers more productive and efficient.

Carly defines tech debt as issues that primarily impact the developer rather than the user, aimed at improving developer productivity and efficiency, rather than directly improving the user experience.

Carly mentions that typically there's about 15% of team capacity dedicated to addressing tech debt, though she expresses concern that this may not be sufficient to manage all necessary tasks classified under tech debt.

Carly argues that automated testing and monitoring are essential for feature preservation, which directly impacts the user if a feature breaks or degrades. Therefore, these tasks should be included in the scope of building features, not in tech debt.

Carly notes that insufficient handling of tech debt can slow down teams, impact business by delaying feature delivery, and negatively affect developer happiness and morale, which can further lead to problems with retention and hiring.

Carly proposes that teams should clearly define what constitutes tech debt and ensure that it includes only those tasks that primarily benefit developer productivity, excluding user-centric tasks like feature preservation.

Carly is a software engineer who has worked at Galileo, Haven, and ZocDoc, all of which are health tech companies based in New York City. Her expertise includes JavaScript, TypeScript, and React.

Carly Litchfield
Carly Litchfield
8 min
15 Jun, 2021

Comments

Sign in or register to post your comment.

Video Summary and Transcription

Tech debt is a common issue that teams struggle with, but addressing it effectively requires a structured approach and prioritizing issues that primarily impact developers. Feature preservation, such as automated testing and monitoring, should be considered part of building features, not tech debt. Fixing user-related issues takes priority over developer concerns, and scaling to serve more users benefits both users and developers. Climbing out of tech debt effectively is possible with a focus on developer productivity and user benefit.

1. Understanding Tech Debt and Prioritization

Short description:

Hi, everyone. Today, I'll talk about getting testing out of your tech day. Tech debt is a common issue that teams struggle with. It often becomes a dumping ground for tasks that don't make it to the roadmap. However, trying to fit all of that into just 15% of your team's capacity is not realistic. It slows down your team and has negative effects on morale and retention. To address tech debt effectively, it's important to have a structured approach and prioritize issues that primarily impact developers. Feature preservation should be considered part of building features, not tech debt.

Hi, everyone. My name is Carly, and today I'm going to talk to you about getting testing out of your tech day. Okay. First, just a quick introduction. I'm a software engineer. I work at Galileo, which is a small health tech startup in New York City. Previously, I worked at Haven and ZocDoc, which are also health tech companies. Do a lot of JavaScript, TypeScript, React. I love automation, which is why I'm here at this testing conference today, really excited. And in my spare time, I like to get outdoors.

Okay. So, let's start off with talking about sort of the state of tech debt, what I've witnessed on teams, how people are thinking about tech debt so far. I often see a roadmap, something like this, that product managers and engineering managers will work really hard to put together, figure out exactly what the very top priorities are for this team. And then there's usually some, like, 15-ish percent capacity that's dedicated to tech debt. And that's what I'm going to focus on today, that 15% capacity. Let's talk about what falls into there. I oftentimes see scaling will fall into this 15% capacity, testing might fall into there, upgrades and maintenance will be categorized as tech debt, bugs will be categorized as tech debt. And it sort of starts to feel like it's the junk drawer of software engineering, where anything that isn't explicitly put on the team's roadmap is kind of dropped into this tech debt 15% capacity drawer, and the team tries to get it done within that, within those constraints.

The reality is, though, I just don't think you're going to fit all of that stuff into just 15% of your team's capacity. There's actually, you know, a lot of work to do here. I've been on teams who have tried I mean, I've tried before to fit all that in. And the result I see is that it really slows down your team. Your team starts to suffer because the tech debt is just growing and is never really being fully addressed. So it's, of course, bad for your business when your team can't ship features quickly. It also has these second order effects, I think of like developer happiness starts to suffer because people don't usually want to work on teams that are saddled with a ton of tech debt. So you can have problems with morale and retention, you can either even like have problems with hiring because people often don't want to join teams with a ton of tech debt. So it's obviously not great to be in that place where you're just mounting with a ton of tech debt, but how do you get out of there? I think a solution is to apply some more structure and rigor around how your team decides what qualifies as tech debt. And what I've seen work well is this one philosophy that I've come up with, or that I've learned from others, which is that tech debt is issues that primarily impact the developer rather than the user. So that means things that are going to make the developer more productive, make the developer more efficient, rather than are directly sort of to improve the user experience. And the kind of like less obvious follow on to that is that I think feature preservation is in the scope of building features and should not be categorized as tech debt.

2. Feature Preservation and Tech Debt

Short description:

Feature preservation, such as automated testing and monitoring, prevents features from breaking and impacting users. It's crucial to have product manager buy-in for including these in the feature scope. Fixing user-related issues takes priority over developer concerns. Refactoring and writing tests are examples of tech debt and feature preservation, respectively. Scaling to serve more users benefits the users, not just developers. Applying this philosophy requires judgment and nuance, focusing on developer productivity versus user benefit. Climbing out of tech debt effectively is possible with this approach.

And when I say feature preservation, I'm talking about things like automated testing and monitoring, things that make this whole system aware that a feature exists and prevents a feature from disappearing or breaking without the developer team knowing about it. The reason I categorize this as not tech debt is because if these features are to break, the real impact falls on the user. Like it really is the user that suffers if a feature breaks. And so I think it's very much in the user's incentive to have feature preservation built in from the start.

So let me just double click on this philosophy. When you get a ticket or a project from a product manager, you usually have some very explicit scope built in, which is to make that new thing work. And then there's kind of some implicit scope hidden underneath, which is to not break the old things. If you were to break the old things, the person that's gonna suffer, again, is the user, rather than the developer. And so for that reason, I think it's really important to have product manager buy-in that things like automated testing and monitoring need to be in scope of the feature, because the users will suffer if you don't have that.

Okay, cool. So now we have that philosophy, let's try and pressure test it against some more real-life situations. And as we're going through these, I wanna again focus on, like, who is benefiting from solving this problem. First one, let's say you have a ticket to fix a bug, like fix this broken tooltip. This one I would categorize as for the user, and so it's not tech debt. It's probably not the developer who's suffering from this broken tooltip. It's probably the user, and so it should be prioritized against all the other user concerns. How about a code cleanup ticket, where we are going to refactor some huge authentication file into multiple modules. This one, I'd say, is a great example of tech debt. This is for the developer. This is probably in order to help developers move faster, understand things more quickly, and so this is a great use of that 15% capacity. Testing, like writing tests for a new model. I'd say this is feature preservation, and so it's not tech debt, and it really needs to be baked into the estimation of the original creation of the feature. And scaling, like making a user service work for 10,000 people. Again, this is actually for the user, and so I'd say it's not tech debt. Despite the fact that this feels like a very technical project, doing this work isn't going to make the developer more productive or more efficient. It's really to serve your users better, and so I'd say this isn't tech debt. This, again, should be prioritized against other user concerns.

Okay, so I recognize that I've sort of portrayed this scenario as very black and white, but it's not going to be, right? There's going to be lots of things that are maybe good for the user and good for developer productivity. And so it'll take judgment and nuance to apply this philosophy, for sure, but as you're thinking about it, I think just concentrate on the two ends of this spectrum, like tech debt being primarily for developer productivity, not tech debt being anything that's really for the user's benefit. And hopefully, with this structure, you can start to climb your way out of the tech debt that 15% capacity more effectively.

Okay. Thank you. That's my talk. Just a quick mention that Galileo is hiring, so definitely reach out to me if you're interested in that. And you can find me on Twitter at Carly Jo.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Network Requests with Cypress
TestJS Summit 2021TestJS Summit 2021
33 min
Network Requests with Cypress
Top Content
Cecilia Martinez, a technical account manager at Cypress, discusses network requests in Cypress and demonstrates commands like cydot request and SCI.INTERCEPT. She also explains dynamic matching and aliasing, network stubbing, and the pros and cons of using real server responses versus stubbing. The talk covers logging request responses, testing front-end and backend API, handling list length and DOM traversal, lazy loading, and provides resources for beginners to learn Cypress.
Testing Pyramid Makes Little Sense, What We Can Use Instead
TestJS Summit 2021TestJS Summit 2021
38 min
Testing Pyramid Makes Little Sense, What We Can Use Instead
Top Content
Featured Video
Gleb Bahmutov
Roman Sandler
2 authors
The testing pyramid - the canonical shape of tests that defined what types of tests we need to write to make sure the app works - is ... obsolete. In this presentation, Roman Sandler and Gleb Bahmutov argue what the testing shape works better for today's web applications.
Full-Circle Testing With Cypress
TestJS Summit 2022TestJS Summit 2022
27 min
Full-Circle Testing With Cypress
Top Content
Cypress is a powerful tool for end-to-end testing and API testing. It provides instant feedback on test errors and allows tests to be run inside the browser. Cypress enables testing at both the application and network layers, making it easier to reach different edge cases. With features like AppActions and component testing, Cypress allows for comprehensive testing of individual components and the entire application. Join the workshops to learn more about full circle testing with Cypress.
Test Effective Development
TestJS Summit 2021TestJS Summit 2021
31 min
Test Effective Development
Top Content
This Talk introduces Test Effective Development, a new approach to testing that aims to make companies more cost-effective. The speaker shares their personal journey of improving code quality and reducing bugs through smarter testing strategies. They discuss the importance of finding a balance between testing confidence and efficiency and introduce the concepts of isolated and integrated testing. The speaker also suggests different testing strategies based on the size of the application and emphasizes the need to choose cost-effective testing approaches based on the specific project requirements.
Playwright Test Runner
TestJS Summit 2021TestJS Summit 2021
25 min
Playwright Test Runner
Top Content
The Playwright Test Runner is a cross-browser web testing framework that allows you to write tests using just a few lines of code. It supports features like parallel test execution, device emulation, and different reporters for customized output. Code-Gen is a new feature that generates code to interact with web pages. Playwright Tracing provides a powerful tool for debugging and analyzing test actions, with the ability to explore trace files using TraceViewer. Overall, Playwright Test offers installation, test authoring, debugging, and post-mortem debugging capabilities.
Everyone Can Easily Write Tests
TestJS Summit 2023TestJS Summit 2023
21 min
Everyone Can Easily Write Tests
Playwright is a reliable end-to-end testing tool for modern web apps that provides one API, full isolation, fast execution, and supports multiple languages. It offers features like auto-weighting, retrying assertions, seamless testing of iframes and shadow DOM, test isolation, parallelism, and scalability. Playwright provides tools like VS Code extension, UiMode, and Trace Viewer for writing, debugging, and running tests. Effective tests prioritize user-facing attributes, use playwright locators and assertions, and avoid testing third-party dependencies. Playwright simplifies testing by generating tests, providing code generation and UI mode, and allows for easy running and debugging of tests. It helps in fixing failed tests and analyzing DOM changes, fixing locator mismatches, and scaling tests. Playwright is open source, free, and continuously growing.

Workshops on related topic

Designing Effective Tests With React Testing Library
React Summit 2023React Summit 2023
151 min
Designing Effective Tests With React Testing Library
Top Content
Featured Workshop
Josh Justice
Josh Justice
React Testing Library is a great framework for React component tests because there are a lot of questions it answers for you, so you don’t need to worry about those questions. But that doesn’t mean testing is easy. There are still a lot of questions you have to figure out for yourself: How many component tests should you write vs end-to-end tests or lower-level unit tests? How can you test a certain line of code that is tricky to test? And what in the world are you supposed to do about that persistent act() warning?
In this three-hour workshop we’ll introduce React Testing Library along with a mental model for how to think about designing your component tests. This mental model will help you see how to test each bit of logic, whether or not to mock dependencies, and will help improve the design of your components. You’ll walk away with the tools, techniques, and principles you need to implement low-cost, high-value component tests.
Table of contents- The different kinds of React application tests, and where component tests fit in- A mental model for thinking about the inputs and outputs of the components you test- Options for selecting DOM elements to verify and interact with them- The value of mocks and why they shouldn’t be avoided- The challenges with asynchrony in RTL tests and how to handle them
Prerequisites- Familiarity with building applications with React- Basic experience writing automated tests with Jest or another unit testing framework- You do not need any experience with React Testing Library- Machine setup: Node LTS, Yarn
How to Start With Cypress
TestJS Summit 2022TestJS Summit 2022
146 min
How to Start With Cypress
Featured WorkshopFree
Filip Hric
Filip Hric
The web has evolved. Finally, testing has also. Cypress is a modern testing tool that answers the testing needs of modern web applications. It has been gaining a lot of traction in the last couple of years, gaining worldwide popularity. If you have been waiting to learn Cypress, wait no more! Filip Hric will guide you through the first steps on how to start using Cypress and set up a project on your own. The good news is, learning Cypress is incredibly easy. You'll write your first test in no time, and then you'll discover how to write a full end-to-end test for a modern web application. You'll learn the core concepts like retry-ability. Discover how to work and interact with your application and learn how to combine API and UI tests. Throughout this whole workshop, we will write code and do practical exercises. You will leave with a hands-on experience that you can translate to your own project.
Detox 101: How to write stable end-to-end tests for your React Native application
React Summit 2022React Summit 2022
117 min
Detox 101: How to write stable end-to-end tests for your React Native application
Top Content
WorkshopFree
Yevheniia Hlovatska
Yevheniia Hlovatska
Compared to unit testing, end-to-end testing aims to interact with your application just like a real user. And as we all know it can be pretty challenging. Especially when we talk about Mobile applications.
Tests rely on many conditions and are considered to be slow and flaky. On the other hand - end-to-end tests can give the greatest confidence that your app is working. And if done right - can become an amazing tool for boosting developer velocity.
Detox is a gray-box end-to-end testing framework for mobile apps. Developed by Wix to solve the problem of slowness and flakiness and used by React Native itself as its E2E testing tool.
Join me on this workshop to learn how to make your mobile end-to-end tests with Detox rock.
Prerequisites- iOS/Android: MacOS Catalina or newer- Android only: Linux- Install before the workshop
API Testing with Postman Workshop
TestJS Summit 2023TestJS Summit 2023
48 min
API Testing with Postman Workshop
Top Content
WorkshopFree
Pooja Mistry
Pooja Mistry
In the ever-evolving landscape of software development, ensuring the reliability and functionality of APIs has become paramount. "API Testing with Postman" is a comprehensive workshop designed to equip participants with the knowledge and skills needed to excel in API testing using Postman, a powerful tool widely adopted by professionals in the field. This workshop delves into the fundamentals of API testing, progresses to advanced testing techniques, and explores automation, performance testing, and multi-protocol support, providing attendees with a holistic understanding of API testing with Postman.
1. Welcome to Postman- Explaining the Postman User Interface (UI)2. Workspace and Collections Collaboration- Understanding Workspaces and their role in collaboration- Exploring the concept of Collections for organizing and executing API requests3. Introduction to API Testing- Covering the basics of API testing and its significance4. Variable Management- Managing environment, global, and collection variables- Utilizing scripting snippets for dynamic data5. Building Testing Workflows- Creating effective testing workflows for comprehensive testing- Utilizing the Collection Runner for test execution- Introduction to Postbot for automated testing6. Advanced Testing- Contract Testing for ensuring API contracts- Using Mock Servers for effective testing- Maximizing productivity with Collection/Workspace templates- Integration Testing and Regression Testing strategies7. Automation with Postman- Leveraging the Postman CLI for automation- Scheduled Runs for regular testing- Integrating Postman into CI/CD pipelines8. Performance Testing- Demonstrating performance testing capabilities (showing the desktop client)- Synchronizing tests with VS Code for streamlined development9. Exploring Advanced Features - Working with Multiple Protocols: GraphQL, gRPC, and more
Join us for this workshop to unlock the full potential of Postman for API testing, streamline your testing processes, and enhance the quality and reliability of your software. Whether you're a beginner or an experienced tester, this workshop will equip you with the skills needed to excel in API testing with Postman.
Monitoring 101 for React Developers
React Summit US 2023React Summit US 2023
107 min
Monitoring 101 for React Developers
Top Content
WorkshopFree
Lazar Nikolov
Sarah Guthals
2 authors
If finding errors in your frontend project is like searching for a needle in a code haystack, then Sentry error monitoring can be your metal detector. Learn the basics of error monitoring with Sentry. Whether you are running a React, Angular, Vue, or just “vanilla” JavaScript, see how Sentry can help you find the who, what, when and where behind errors in your frontend project. 
Workshop level: Intermediate
Testing Web Applications Using Cypress
TestJS Summit - January, 2021TestJS Summit - January, 2021
173 min
Testing Web Applications Using Cypress
WorkshopFree
Gleb Bahmutov
Gleb Bahmutov
This workshop will teach you the basics of writing useful end-to-end tests using Cypress Test Runner.
We will cover writing tests, covering every application feature, structuring tests, intercepting network requests, and setting up the backend data.
Anyone who knows JavaScript programming language and has NPM installed would be able to follow along.