Advanced techniques for Kotlin Power Assert

Опубликовано: 14 Июнь 2024
на канале: Pairing with Duncan
486
23

I’m going to fast-follow my last video (   • Kotlin Power Assert  ) on Kotlin Power-Assert (https://kotlinlang.org/docs/power-ass...) with another on the same subject, because I’m excited by the technology, and the author Brian Norman has been very helpful on the Kotlin Slack.

So, without further ado, let’s hack on Power-Assert a bit more.

In this episode

00:02:32 Multi-line values don't lay out well
00:03:48 so let's just use a data class from now on
00:04:56 Can we solve the message indent problem?
00:06:29 Enhancing our soft-assert
00:09:50 Can we show the values of the succeeding asserts?
00:12:16 Making a soft-assert DSL
00:17:03 Add in passed assertions
00:19:10 Looking at flow typing
00:23:30 OnlyInputTypes
00:24:15 Will I be using Power-Assert?


This video is one of lots on testing (   • Testing  ) and the code is from my Test Driven Gilded Rose project (   • Test Driven Gilded Rose in Kotlin  ) available on GitHub (https://github.com/dmcg/gilded-rose-tdd).

If you like this video, you’ll probably like my book Java to Kotlin, A Refactoring Guidebook (http://java-to-kotlin.dev). It's about far more than just the syntax differences between the languages - it shows how to upgrade your thinking to a more functional style.


Смотрите видео Advanced techniques for Kotlin Power Assert онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Pairing with Duncan 14 Июнь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 486 раз и оно понравилось 23 людям.