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

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • ►Full DLang Series Playlist: • D Language (DLang) Pro...
    ►Find full courses on: 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!
    ►RUclips Channel: / mikeshah
    ►Join our free community: courses.mshah....

Комментарии • 3

  • @bsdooby
    @bsdooby 25 дней назад +1

    Learned a lot, too ;)

  • @GaryChike
    @GaryChike Месяц назад +1

    D'Liteful!