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:

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