[Dlang Episode 101] D Language - unittest 1/n - The Basics (TDD, separate module testing, and more!)

Published: 26 July 2024
on channel: Mike Shah
130
12

►Full DLang Series Playlist:    • D Language (DLang) Programming  
►Find full courses on: https://courses.mshah.io/
►Join as member to get perks:    / @mikeshah  

►Lesson Description: In this lesson I show you how to use one of my favorite features of the D programming language, the 'unittest' block. The unittest block treats blocks of code effectively as functions that execute per module and test for correctness. We use these to try to improve the confidence in our program and also protect against regressions. unittest can be used on the whole program, or compiled per module (using the '-main' flag if we don't have a main function). We'll talk more about how to use this feature with code coverage, documentation, and metaprogramming in future episodes. There are many testing frameworks in D in the dub repository otherwise. As always, share your interesting use cases with the community in the discussion below!

►Please like and subscribe to help the channel!
►YouTube Channel:    / mikeshah  
►Join our free community: https://courses.mshah.io/communities/...


Watch video [Dlang Episode 101] D Language - unittest 1/n - The Basics (TDD, separate module testing, and more!) online, duration hours minute second in high quality that is uploaded to the channel Mike Shah 26 July 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 130 times and liked it 12 visitors.