[Haskell-cafe] HSpec vs Doctest for TDD

MigMit miguelimo38 at yandex.ru
Tue Jun 24 21:18:11 UTC 2014


Well, for me TDD seems to be a poor substitute for type safety.

And I specifically mean the level of type safety Haskell provides. In other languages TDD could be a good thing (although I value explorative programming too much), but in Haskell I think it's a waste of time.

Отправлено с iPad

> 24 июня 2014 г., в 22:55, Gautier DI FOLCO <gautier.difolco at gmail.com> написал(а):
> 
> Hi all,
> 
> I'm a huge fan of TDD (Test-Driven Development) et I used to use tools such as RSpec (Ruby). So naturally, I looked to HSpec, but it seems not idiomatic in Haskell.
> I have a bunch of questions:
> - Do you do TDD?
> - Which tools do you use?
> - Is doctest "better" (in some senses) than HSpec? Why?
> - Are HSpec and Doctest complementary? If so, in which case do you use one or another?
> - Is there some Haskell-specific good practices do to TDD?
> 
> Thanks in advance for your lights.
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe


More information about the Haskell-Cafe mailing list