mikezx6r

mikezx6r

From Objects to Functions: Testing Tools query P12-17

@uberto

I’ve only begun reading the book, and like what I see. Doing the first Test portion around addition, and wondering if you’ve ever examined Kotest? A Kotlin specific testing framework.
It has been around awhile, and has excellent support, active devs, and a plugin for IntelliJ.

I like it because it leverages Kotlin throughout, has different testing styles to suit your requirements, and preferences, an excellent assertion library (that can be used in isolation), and solid property-based testing, including shrinking.

I really like its assertion style of (x + y) shouldBe 12, and similar. It has a solid selection of assertions. Very close to AssertJ, and the community/developers are quick to respond to inquiries.

I thought I’d pass it along in case you’d never seen it. Well worth investigating IMO.

Looking forward to the rest of the book.

Most Liked

mikezx6r

mikezx6r

Agreed that a lot comes down to personal preference. I did a fair bit with Groovy, and Spock assertions, and really liked the lack of keywords. Kotest assertions comes closest to that for me, hence my.preference for it.

mikezx6r

mikezx6r

I’ve always found Idea does a very good job of figuring out the right suggestions, and keeps getting better all the time.

But definitely use what makes you happiest, and most productive. There’s no shortage of tools to choose from in our industry. All of them with objective pros/cons, and subjective pros/cons.

Really enjoying the design ideas I’m gaining from the book. Also having ‘fun’ with Kotlin, as unfortunately, I don’t get to use it in my day job anymore :frowning:

Working through the early days of the book ‘forced’ me to dig into the inner workings, and code samples. Nothing like digging in to truly learn, and understand the design, and process.

But constructive feedback. Hopefully the technical reviewers will get the examples, and sample code, better working than it was in the early days, or else it will cause a number of people to give up way too early.

I see the source code as a zip. I searched, but didn’t find a repo on Github. Is there a publicly available repo with the source code? I ask as it makes determining what has changed so much easier, and I like to see the evolution. Completely understand if you don’t want to share it, though.

Thanks again, and keep up the good work. I really appreciate it when people take the time to share their ideas.

Where Next?

Popular Pragmatic Bookshelf topics Top

belgoros
Following the steps described in Chapter 6 of the book, I’m stuck with running the migration as described on page 84: bundle exec sequel...
New
mikecargal
Title: Hands-On Rust (Chapter 11: prefab) Just played a couple of amulet-less games. With a bit of debugging, I believe that your can_p...
New
herminiotorres
Hi @Margaret , On page VII the book tells us the example and snippets will be all using Elixir version 1.11 But on page 3 almost the en...
New
jskubick
I found an issue in Chapter 7 regarding android:backgroundTint vs app:backgroundTint. How to replicate: load chapter-7 from zipfile i...
New
New
rainforest
Hi, I’ve got a question about the implementation of PubSub when using a Phoenix.Socket.Transport behaviour rather than channels. Before ...
New
mert
AWDWR 7, page 152, page 153: Hello everyone, I’m a little bit lost on the hotwire part. I didn’t fully understand it. On page 152 @rub...
New
andreheijstek
After running /bin/setup, the first error was: The foreman' command exists in these Ruby versions: That was easy to fix: gem install fore...
New
a.zampa
@mfazio23 I’m following the indications of the book and arriver ad chapter 10, but the app cannot be compiled due to an error in the Bas...
New
gorkaio
root_layout: {PentoWeb.LayoutView, :root}, This results in the following following error: no “root” html template defined for PentoWeb...
New

Other popular topics Top

dasdom
No chair. I have a standing desk. This post was split into a dedicated thread from our thread about chairs :slight_smile:
New
AstonJ
Do the test and post your score :nerd_face: :keyboard: If possible, please add info such as the keyboard you’re using, the layout (Qw...
New
PragmaticBookshelf
“Finding the Boundaries” Hero’s Journey with Noel Rappin @noelrappin Even when you’re ultimately right about what the future ho...
New
AstonJ
Continuing the discussion from Thinking about learning Crystal, let’s discuss - I was wondering which languages don’t GC - maybe we can c...
New
wmnnd
Here’s the story how one of the world’s first production deployments of LiveView came to be - and how trying to improve it almost caused ...
New
AstonJ
Biggest jackpot ever apparently! :upside_down_face: I don’t (usually) gamble/play the lottery, but working on a program to predict the...
New
PragmaticBookshelf
Author Spotlight James Stanier @jstanier James Stanier, author of Effective Remote Work , discusses how to rethink the office as we e...
New
PragmaticBookshelf
Author Spotlight Jamis Buck @jamis This month, we have the pleasure of spotlighting author Jamis Buck, who has written Mazes for Prog...
New
PragmaticBookshelf
Author Spotlight: Peter Ullrich @PJUllrich Data is at the core of every business, but it is useless if nobody can access and analyze ...
New
AstonJ
This is a very quick guide, you just need to: Download LM Studio: https://lmstudio.ai/ Click on search Type DeepSeek, then select the o...
New

Sub Categories: