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:

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