13

I like doing TDD and would like to build up a test suite around my contract code. I have been looking at both ReasonML and Liquidity but neither seems to have a great testing story yet. Does it make sense going full OCaml instead?

What are people using?

0
11

There are several test frameworks coming for Tezos. Ours (Techelson) can be used both from Michelson and from Liquidity. It should be released soon.

(I will update this answer when it is released)

1
4

Tezos environment manager has a contract testing framework planned on the roadmap, you can check the current status at this git repo.

0

cleveland is a test framework for Michelson contracts. It takes advantage of Haskell's already existing testing tools: QuickCheck, hspec and hedgehog. It allows you to test contracts written in the low level eDSL lorentz, the high level eDSL indigo, hand written Michelson contracts or Michelon output by any other programming language such as SmartPy or LIGO.

SmartPy also supports unit tests with their test scenarios.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.