Search
Close this search box.
Search
Close this search box.
Search
Close this search box.

A Beautiful Day For Unit Tests

Facebook
Twitter
LinkedIn
Pinterest
WhatsApp

Writing unit tests on Legacy Code is an adventure. Today I spent several hours doing that with two developers, Mark and Yelena.

The system has a flow you are used to and when you write code you fit it into this flow. Then you test the entire system.

With unit tests, it works differently. You are required to start the flow from the middle and stop it when your deed was done.

This requires a different level of system understanding. When we started off in the morning we looked at the code and thought “how are we going to harness this?”

To instantiate the class we needed a session so we extracted the code to a different place, then there was a logging mechanism we had to bypass. Everything was almost working when we realized that instead of getting a specific exception we got a null pointer. After additional investigation, we found that the exception itself throws the null pointer because it didn’t get the file access required.

On the way we found defects, it was a pleasure.

The main achievement was to reduce the level of anxiety from doing this. The more you practice it the faster it will go and you will become a true master of the system. Do not hesitate – take that adventure!

Subscribe for Email Updates:

Categories:

Tags:

TDD
Agile Delivery
Operational Value Stream
LeSS
Kanban 101
Risk-aware Product Development
Agile
Professional Scrum Master
The Agile Coach
Pomodoro Technique
Video
Scrum Primer
Product Ownership
Program Increment
Lean Agile Management
ATDD vs. BDD
Scaled Agile Framework
Certified SAFe
EOS®
ARTs
PI Planning
Agile Risk Management
Introduction to ATDD
AgileSparks
Atlaassian
ROI
Jira
Large Scale Scrum
SAFe
Software Development
Scrum
Elastic Leadership
What Is Kanban
Scrum Guide
Lean and Agile Principles and Practices
Scrum Master Role
Agile Contracts Best Practices
Implementing SAFe
Agile in the Enterprise
Kaizen
RTE Role
Principles of Lean-Agile Leadership
Frameworks
Tools
Perfection Game
AI Artificial Intelligence
Advanced Roadmaps
GanttBan
Introduction to Test Driven Development
AI
Manage Budget Creation
Continuous Improvement
Agile Marketing
Tips
An Appreciative Retrospective
Keith Sawyer
System Team
RSA
DevOps
System Integration Environments
SAFe DevOps
Lean Agile Basics
Nexus Integration Team
Planning
Agile Mindset
Agile Basics
Amdocs
Product Management
Acceptance Test-Driven Development
Artificial Intelligence
Professional Scrum Product Owner
Software Development Estimation
Value Streams
Agile Product Ownership
Agile Community
Development Value Streams
Release Train Engineer
Nexus and SAFe
Scrum and XP
Legacy Enterprise
Scrum Values
Accelerate Value Delivery At Scale
Team Flow
Agile Games and Exercises
Agile Games
Nexus and Kanban
Change Management
Agile Program
Jira Plans
Agile Exercises
PI Objectives
Lean Risk Management
Agility
SA
User stories
Legacy Code
RTE
Agile Product Development
Test Driven Development
Quality Assurance
Agile Release Planning
Presentation
Lean Startup
Risk Management on Agile Projects
Sprint Planning
Implementation of Lean and Agile
SAFe Release Planning
Certification
predictability
Agile for Embedded Systems
LAB
Continuous Planning
NIT
LPM
Lean Budgeting
System Archetypes
Kanban Basics
Agile Outsourcing
Agile and DevOps Journey
Webinar
ART Success
Process Improvement
Managing Risk on Agile Projects
Daily Scrum
Lean Agile Organization
Lean-Agile Software Development
ALM Tools
Engineering Practices
Systems Thinking
Agile Assembly Architecture
Hybrid Work
Agile Project Management
Lean-Agile Budgeting
Entrepreneurial Operating System®
Applying Agile Methodology
Atlassian
Lean Agile
POPM
BDD
Kanban
Continuous Delivery
Games and Exercises
Portfolio for Jira
Nexus
Effective Agile Retrospectives
Agile Testing Practices
Iterative Incremental Development
Kaizen Workshop
Nexus vs SAFe
Managing Projects
speed at scale
Agile Israel Events
Agile Development
Jira admin
Scrum.org
A Kanban System for Software Engineering
Business Agility
Continuous Deployment
Agile Release Management
lean agile change management
Built-In Quality
The Kanban Method
Agile India
Continuous Integration
Jira Cloud
Agile Techniques
Sprint Iteration
Scrum Master
WIP
agileisrael
Enterprise DevOps
Rapid RTC
Lean Software Development
Achieve Business Agility
Limiting Work in Progress
Self-organization
Reading List
chatgpt
Agile Project
QA
Professional Scrum with Kanban
Lean Agile Leadership
Scrum With Kanban
Agile Israel
ATDD
Sprint Retrospectives
SPC
Releases Using Lean
Code
Risk Management in Kanban
Story Slicing
Lean and Agile Techniques
Kanban Game
Coaching Agile Teams
IT Operations
Kanban Kickstart Example
Slides
speed @ scale
Spotify
Covid19
AgileSparks
Logo
Enable registration in settings - general

Contact Us

Request for additional information and prices

AgileSparks Newsletter

Subscribe to our newsletter, and stay updated on the latest Agile news and events

This website uses Cookies to provide a better experience
Shopping cart