Unit testing framework - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Sridhar Ratnakumar

Finally I'm getting around to writing unit tests in a Haskell project. :-D What is the recommended library/framework nowadays?

Sridhar Ratnakumar

HUnit is advertised as "a unit testing framework for Haskell, inspired by the JUnit tool for Java", and I cringe at reading "Java"

Fintan Halpenny

I would say the majority of people writing unit tests use it [citation needed]

Joel McCracken

I'm using hspec in my rib site @Sridhar Ratnakumar

Pavan Rikhi

I like tasty :embarrassed:

Mats Rauhala

I used to use tasty, but I've converted all of my tests to hspec. Functionally they are really similar, but hspec just flows better

Sandy Maguire

yeah. tasty requires updating a few disparate things every time you add a test

Sandy Maguire

IME it's too easy to forget to add one and then wham! silently failing test (becaues it's not being run)