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