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:

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