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:

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