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:

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