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:

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