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:

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