077 Fundamentals of Unit Testing, BDD and Mocking (using TestBox and MockBox) with Uma Ghotikar episode artwork

EPISODE · Jun 4, 2018 · 37 MIN

077 Fundamentals of Unit Testing, BDD and Mocking (using TestBox and MockBox) with Uma Ghotikar

from ColdFusion Alive

Uma Ghotikar talks about “Fundamentals of Unit Testing, BDD and Mocking (using TestBox and MockBox)” in this episode of ColdFusion Alive podcast with host Michaela Light. Show notes What is unit testing? Test small piece of functionality Low level, small scope, a method, a function, a clause Why do unit testing To validate every part of the app whether the UI is ready or not Easier to know where the bug is located Faster to run than general user tests, more thorough test coverage of all use cases,  easy to automate Can write tests before you code So know where your code needs to raise an error Guidelines to write unit tests Fast for immediate feedback (milliseconds) during refactoring and coding Avoid database, file system, http and API calls - mock them instead Modular - so can reuse the test Independent of other unit tests Robust - work the same independent of time of day etc Keep them up to date Clear defined purpose - one piece of functionality Clear pre-conditions, actions and expected outcomes When you code make sure you can get the test to fail first before you write code to make it pass Reactive programming Most tests are of code in the Model part of MC Why do you like xUnit and BDD styles of testing? TDD focuses on testing your low level functions and methods Tedious to write all these tests BDD checks you satisfy your customer requirements at high level User story and scenario What is TestBox? Open Source The Given – When – Then syntax BDD syntax and xUnit The general structure for writing unit tests. Set up, Tear down phrases What is mocking? Why do you like MockBox Open source What is BDD and why do you like it High level CI How do TestBox and MockBox work together for BDD Why are you proud to use CF? WWIT to make CF more alive this year? What are you looking forward to at Into The Box?   Mentioned in this episode TDD = Test Driven Development BDD = Behavior Driven Development xUnit TestBox CFML slack test channel MockBox   Session Description: Topic: Intro to Unit Testing, BDD and Mocking using TestBox & MockBox This session will cover the basics such as what is unit testing, why to do unit testing and guidelines to write the unit tests. It will then cover xUnit and BDD styles of testing in TestBox, Given – When – Then syntax and the general structure for writing unit tests. We will then look into the mocking and demo examples of unit testing using TestBox & MockBox. Listen to the Audio Bio Uma Ghotikar Uma Ghotikar has more than 6 years of experience in web application development, database design and development. She has a technical educational background. She did Master of Science in Information Systems from George Mason University, USA and Bachelor of Engineering in Information Technology from University of Mumbai, India. She enjoys coding especially the back-end development and learning new technical skills. Links LinkedIn Interview transcript Michaela 0:00 Welcome back to the show. And today we're looking at the fundamentals of unit testing, be DD, which is behavior driven development and mocking and using test box and Dropbox, do that, and I'm here with Alma Gattaca. And if you don't know her, she is a cold fusion developer been doing it CFL on cold fusion for six years now. And she is giving a talk on this topic at into the box. So we will cover what is unit testing and why everyone listening should be doing it. And guidelines for writing great unit tests. And then also we'll look in detail at test box. And what it lets you do and how to structure unit tests using it will look at what marketing is and how to do that using mock box and why you want to do that. And we'll also look at behavior driven development or BDD and why you should be doing that and how to do it using test box and mock box together. So welcome oma. Uma Ghotikar 1:00 Thank you. Thank you for having me. I'm glad to be here. Yeah. Michaela 1:03 So what is unit testing? For those few people listening? who may not know? Yeah, Uma Ghotikar 1:10 so yeah, so you're testing is a level of software testing, where, you know, individual units are components of a software testing. And what that means is, the unit is the smallest piece of functionality that can be tested in isolation. So having said that, they are definitely low level they are, they are of small scope. And in procedural language, it could be a function, it could be a method and an object oriented language, it could be a class, our method belongs to a class. So basically, it's the smallest piece of functionality, that's what unit is. And the entire purpose of unit testing is to validate that the each unit of software is performing as design. So that's why we should do unit Read more   And to continue learning how to make your ColdFusion apps more modern and alive, I encourage you to download our free ColdFusion Alive Best Practices Checklist.Because… perhaps you are responsible for a mission-critical or revenue-generating CF application that you don’t trust 100%, where implementing new features is a painful ad-hoc process with slow turnaround even for simple requests.What if you have no contingency plan for a sudden developer departure or a server outage? Perhaps every time a new freelancer works on your site, something breaks. Or your application availability, security, and reliability are poor.And if you are depending on ColdFusion for your job, then you can’t afford to let your CF development methods die on the vine.You’re making a high-stakes bet that everything is going to be OK using the same old app creation ways in that one language — forever.All it would take is for your fellow CF developer to quit or for your CIO to decide to leave the (falsely) perceived sinking ship of CFML and you could lose everything—your project, your hard-won CF skills, and possibly even your job.Luckily, there are a number of simple, logical steps you can take now to protect yourself from these obvious risks.No Brainer ColdFusion Best Practices to Ensure You Thrive No Matter What Happens NextColdFusion Alive Best Practices ChecklistModern ColdFusion development best practices that reduce stress, inefficiency, project lifecycle costs while simultaneously increasing project velocity and innovation.√ Easily create a consistent server architecture across development, testing, and production√ A modern test environment to prevent bugs from spreading√ Automated continuous integration tools that work well with CF√ A portable development environment baked into your codebase… for free! Learn about these and many more strategies in our free ColdFusion Alive Best Practices Checklist.

NOW PLAYING

077 Fundamentals of Unit Testing, BDD and Mocking (using TestBox and MockBox) with Uma Ghotikar

0:00 37:54

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

LIGHTS, CAMERA, SMILE! Creatives Club Media Lights, Camera, Smile, is a podcast for anyone with a dream to share something with the world, out of the overflow of themselves - be it their mind, their heart, their personalities, and much more. Each of us are alive in this moment in time, with an innate ability to have ideas and create various things to benefit both ourselves and the people around us for a reason, and here, you will find the encouragement, the inspiration, and the motivation to do just that. Hosted by Cicily, founder of Creatives Club, she dives into various topics surrounding creativity and business. Exploring entrepreneurship for creatives in a corporate reality, sharing tips and tricks in a media centered company, answering questions regarding what a creative actually is are just a few of the things discussed on this podcast. Be encouraged to create for yourself as Cicily gets vulnerable by pivoting the camera to herself for the first time.To submit questions for Cicily to answer, or have her address certain t Tao Te Ching by Laozi (Author), Stephen Mitchell (Full Audiobook) Laozi Lao-tzu's Tao Te Ching, or Book of the Way, is the classic manual on the art of living, and one of the wonders of the world. In eighty-one brief chapters, the Tao Te Ching looks at the basic predicament of being alive and gives advice that imparts balance and perspective, a serene and generous spirit. This book is about wisdom in action. It teaches how to work for the good with the effortless skill that comes from being in accord with the Tao (the basic principle of the universe) and applies equally to good government and sexual love; to child rearing, business, and ecology.Stephen Mitchell's bestselling version has been widely acclaimed as a gift to contemporary culture. My Messy, Human Life Sheena Grund A new adventure of being alive in this messy, difficult, and beautiful human life... topics to be discussed at different times: life, unlearning, disability, faith, love, Spirit... really all the things! It'll be messy (as in all over the place), but that literally in the title of the podcast, so hopefully it's not a surprise! Also, life is unpredictable and beautiful, which I hope this podcast will be, too. Emerging as Me Kaitlin Ashley Cox Where can I find support through all of the hard seasons of life? Where can I find encouragement and solidarity, so that I know that I am not alone? How can I overcome this hardship? Is there a place to build community and friendship as we work through the hard times as well as celebrate the good times? Welcome to the Emerging as Me podcast! The podcast where we answer these questions and so much more! Tune in for conversations with me, your host, Kaitlin Cox, and special guests. As we work through the hard stuff together. We will uplift and empower one another to persevere through all of life's challenges. We'll cover it all! From marriage and motherhood, living in rural communities, loss and hardship, and how to keep faith alive while finding hope in your everyday life.Everyone deserves to be seen, heard, and loved. The journey of life, as I have learned, isn't always a direct path to success and happiness. I'm traveling down life's winding roads, learning to navigate as I go. Alw

Frequently Asked Questions

How long is this episode of ColdFusion Alive?

This episode is 37 minutes long.

When was this ColdFusion Alive episode published?

This episode was published on June 4, 2018.

What is this episode about?

Uma Ghotikar talks about “Fundamentals of Unit Testing, BDD and Mocking (using TestBox and MockBox)” in this episode of ColdFusion Alive podcast with host Michaela Light. Show notes What is unit testing? Test small piece of...

Can I download this ColdFusion Alive episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!