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:

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