Talks
Speakers
Events
Topics
Search
Sign in
Search
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
search talks for
⏎
Suggest modification to this talk
Title
Description
This talk was given at the WNB.rb meetup on September 27, 2022. Are you new to unit testing? Maybe you've already written some unit tests and would like to refresh and expand your understanding? Well, you're in luck because this talk is just for you. How can we ensure that the software we build is fit-for-purpose, robust and meets users' needs? Well, that's where software testing comes in handy and even better, automated software testing. In this practical talk, I will demystify what software testing is and the purpose of unit testing. We'll have a look at the unit testing structure and a code example in the RSpec unit testing framework and I'll be sharing some unit testing top tips to help you get the most out of it.By this end of this talk, you'll be able to give software testing a go, start to use it in your learning projects or advocate for it within your teams. It's not as yucky as it sounds; automated testing is a key part of building great software and making your Software Engineering life sweeter! Kim Diep is a Software Engineer at Butternut Box and she lives in London, England, UK. By day, she builds software with Ruby code. She also loves building things with the C# programming language, .NET ecosystem and Unity. She only just started Ruby a little over 3 months ago. Before then, she was working primarily in C#. She is passionate about creating things for tech education and loves sharing her experiences with the community to encourage others to learn and grow in their technical skills and confidence. She currently volunteers as a mentor for those who are underrepresented in tech and/or come from socially disadvantaged backgrounds. In Winter 2021, Kim created Curiously Code as a discovery platform providing technology, career and wellbeing inspiration for Curious Humans. By night and on the weekends, you can find Kim practising Kendo, working out at the gym or something random like playing video games and doing some Instax photography! https://www.wnb-rb.dev/meetups/2022/09/27
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
The video titled "Embarking on Your Journey Through the World of Unit Testing" features a talk by Kim Diep presented at the WNB.rb meetup on September 27, 2022. The session aims to support newcomers and those looking to enhance their knowledge of unit testing, essential for ensuring software robustness and effectiveness. ### Main Topics Covered The discussion primarily focuses on unit testing and its significance within software development. Key points include: - **Importance of Testing**: Diep emphasizes that testing is crucial for ensuring that software is robust and meets user’s needs. Without testing, developers may produce unreliable and unpredictable results. - **Testing Pyramid Structure**: Diep explains the structure of testing in software development, which consists of: - **Unit Tests**: The foundation of the testing pyramid, unit tests evaluate the functionality of individual methods or classes quickly and efficiently. - **Integration Tests**: These tests verify that different components of the application work together. - **End-to-End Tests**: The final layer, which tests the application’s overall behavior and user interface. - **Unit Testing Purpose**: Unit tests are described as friendly tools that make developing software easier by catching issues early and effectively documenting what the code is supposed to do. ### Practical Examples - **RSpec Framework**: Diep provides a demonstration of using the RSpec framework for writing unit tests in Ruby. She illustrates the **Arrange-Act-Assert (AAA)** structure—setting up the need, acting upon the test, and asserting the expected outcome. - **Sample Code**: Through a simple example, Diep shows how to write a test for a class called 'Bubble Tea Time' which includes a method for summing three numbers. She highlights writing clear and readable tests that serve as a form of documentation for the code. ### Key Takeaways - **Testing Strategy**: The necessity of writing tests deterministically to avoid flaky tests that yield inconsistent results. - **Control over Tests**: Diep discusses the importance of isolating tests and controlling random elements, such as time in code. - **Final Encouragement**: The talk concludes with an encouragement to engage with unit testing, highlighting its benefits in understanding code functionality and supporting collaboration among developers. By the end of the talk, participants should feel equipped to implement unit testing in their projects or advocate for its use in their teams. Kim Diep's background as a Software Engineer and her passion for tech education enrich the discussion, stressing the value of community contributions to learning and support in the tech space.
Suggest modifications
Cancel