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

Alexandr
Hi everyone! There is an error on the page 71 in the book “Programming machine learning from coding to depp learning” P. Perrotta. You c...
New
simonpeter
When I try the command to create a pair of migration files I get an error. user=> (create-migration "guestbook") Execution error (Ill...
New
jdufour
Hello! On page xix of the preface, it says there is a community forum "… for help if your’re stuck on one of the exercises in this book… ...
New
mikecargal
Title: Hands-on Rust: question about get_component (page 295) (feel free to respond. “You dug you’re own hole… good luck”) I have somet...
New
Mmm
Hi, build fails on: bracket-lib = “~0.8.1” when running on Mac Mini M1 Rust version 1.5.0: Compiling winit v0.22.2 error[E0308]: mi...
New
raul
Page 28: It implements io.ReaderAt on the store type. Sorry if it’s a dumb question but was the io.ReaderAt supposed to be io.ReadAt? ...
New
Charles
In general, the book isn’t yet updated for Phoenix version 1.6. On page 18 of the book, the authors indicate that an auto generated of ro...
New
brunogirin
When running tox for the first time, I got the following error: ERROR: InterpreterNotFound: python3.10 I realised that I was running ...
New
ggerico
I got this error when executing the plot files on macOS Ventura 13.0.1 with Python 3.10.8 and matplotlib 3.6.1: programming_ML/code/03_...
New
roadbike
From page 13: On Python 3.7, you can install the libraries with pip by running these commands inside a Python venv using Visual Studio ...
New

Other popular topics Top

AstonJ
What chair do you have while working… and why? Is there a ‘best’ type of chair or working position for developers?
New
ohm
Which, if any, games do you play? On what platform? I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
New
PragmaticBookshelf
Design and develop sophisticated 2D games that are as much fun to make as they are to play. From particle effects and pathfinding to soci...
New
AstonJ
We have a thread about the keyboards we have, but what about nice keyboards we come across that we want? If you have seen any that look n...
New
Exadra37
I am asking for any distro that only has the bare-bones to be able to get a shell in the server and then just install the packages as we ...
New
mafinar
Crystal recently reached version 1. I had been following it for awhile but never got to really learn it. Most languages I picked up out o...
New
New
mafinar
This is going to be a long an frequently posted thread. While talking to a friend of mine who has taken data structure and algorithm cou...
New
AstonJ
Was just curious to see if any were around, found this one: I got 51/100: Not sure if it was meant to buy I am sure at times the b...
New
PragmaticBookshelf
Author Spotlight Rebecca Skinner @RebeccaSkinner Welcome to our latest author spotlight, where we sit down with Rebecca Skinner, auth...
New

Sub Categories: