serokell / tzbot

Timezone bot for Slack
Mozilla Public License 2.0
7 stars 2 forks source link

Automate the parser tests #17

Closed dcastro closed 1 year ago

dcastro commented 1 year ago

Clarification and motivation

Right now, we have some tests for the parser written using doctests.

However, we're not actually running these doctests (using doctest-parallel, or cabal-docspec, etc) in an automated fashion.

So let's either:

  1. Enable doctests in tzbot. Beware making cabal-docspec play ball with nix is not a trivial task - but we did manage to get it working in morley, so maybe we could reuse that.
  2. Alternatively, move the tests to tzbot-test and rewrite them using tasty
  3. Or do both :D

Acceptance criteria