DocTest VS registry

Compare DocTest vs registry and see what are their differences.

DocTest

An implementation of Python's doctest for Haskell (by sol)

registry

Components as records of functions for Haskell (by etorreborre)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
DocTest registry
3 3
369 165
- -
5.4 4.0
6 months ago 3 months ago
Haskell Haskell
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

DocTest

Posts with mentions or reviews of DocTest. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-15.
  • HSpec, Tasty, sydtest, Hunit, ... -> what do you use for writing Haskell tests?
    2 projects | /r/haskell | 15 Jan 2023
    doctest for testing examples in the documentation. Docs are much clearer when they contain usage examples and doctest helps them keep up to date.
  • Why is the debugger so bad in Haskell? (or is it just me)
    3 projects | /r/haskell | 19 Oct 2021
    Try to restrict your types even on sub functions (inside where), use testing, break down your code to the most atomic parts, using ghci to debug each part once at a time, and because Haskell doesn't let you reuse variables, or mutate state, it's a lot easier to rationalize evaluation order (which makes it a lot easier to debug without step debuggers compared to languages like python).
  • Documentation or lack thereof?
    1 project | /r/ExperiencedDevs | 25 Jun 2021
    Some may argue that the tests are a form of documentation, and that's true, but they still don't capture the why. And tests are almost always separated from the actual code, which makes it more complicated to look at the code and the tests at the same time and understand them together. I've used doctest with Haskell which is a solution to this. Doctest is nice at first but in my experience it wasn't reasonable to do non-trivial tests in doctest, and plenty of tests are non-trivial. So then you're left with the decision to use doctest where you can, and another test solution for non-trivial tests, or just do all tests using the other testing solution. We chose simplicity and got rid of doctest.

registry

Posts with mentions or reviews of registry. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-15.
  • HSpec, Tasty, sydtest, Hunit, ... -> what do you use for writing Haskell tests?
    2 projects | /r/haskell | 15 Jan 2023
    Additionally I have some code to run one Test (single test or test group) from GHCi by passing the function name (run) or a subset of the tests by passing a regexp of the description (runOnly). You can find some of those functions here: https://github.com/etorreborre/registry/blob/main/test/Test/Tasty/Extensions.hs.
  • Injecting one service into another
    1 project | /r/haskell | 18 Oct 2022
    u/henry_kwinto I just want to mention that if you end-up having quite a few of those `makeXXX` functions you can put them in a registry and the wiring will be done automatically for you.
  • Warp/Servant as an effect in Polysemy
    2 projects | /r/haskell | 10 Jul 2022
    Then, the registry library provides point 2 by allowing to "stack" all the constructor functions for your components and override them at will:

What are some alternatives?

When comparing DocTest and registry you can also consider the following projects:

tasty - Modern and extensible testing framework for Haskell

dep-t-advice - Giving good advice to functions in records-of-functions.

quicktest

PolysemyCleanArchitecture - Showcasing how the Polysemy library can be used to implement a REST application conforming to the guidelines of the Clean Architecture model.

http-test - Tests for HTTP APIs

pandoc - Universal markup converter

fitspec - refine properties for testing Haskell programs

ShellCheck - ShellCheck, a static analysis tool for shell scripts

test-fixture - Testing with monadic side-effects

hextra - Library of modules I sometimes use.

bdd - A domain-specific language for testing programs using Behavior-Driven Development (BDD) process in Haskell

dep-t - Dependency injection for records-of-functions.