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:

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