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:

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