Motoko: How to write unit tests?

Hi,

While navigating the CanCan project, I found some unit tests, which is great!
Seems that there’s ic-repl, interesting!

Is there a good read to understand how to properly write unit tests for Motoko? Or maybe share where to learn about the ic-repl

Thank you!

For anyone else interested in writing tests, here’s the repo for ic-repl ( GitHub - chenyan2002/ic-repl ) and has some examples. Also, under testing in the list here GitHub - dfinity/awesome-dfinity: A curated list of awesome projects and resources relating to DFINITY and the Internet Computer

We are still experimenting with the best way to test Motoko and canisters. There are several tools around today that can help with unit testing:

4 Likes

Thank you very much! I’ll test them starting with the ic-repl :slight_smile: