scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

Cookbook: tests with munit

Open romanowski opened this issue 4 years ago • 4 comments

A short cookbooks that will show how to define tests using MUnit. I should cover 2 different test files and test utils.

An example test using Munit

romanowski avatar Nov 02 '21 12:11 romanowski

i'm going to sign up for this for the april 12th spree so i can learn munit. can you provide more detail?

mtk avatar Mar 31 '22 18:03 mtk

This issue was picked for the Issue Spree #14 of 12th April which takes place in a week from now. @tgodzik, @mtk and @anatoliykmetyuk will be working on it. If you have any insight into the issue or guidance on how to fix it, please leave it here.

anatoliykmetyuk avatar Apr 04 '22 09:04 anatoliykmetyuk

Hi @mtk,

I think it should describe how to use munit with Scala CLI. For example, you can prepare some basic Scala scripts and then add some tests in munit.

Additionally, cookbook should describe how to define test and run them - you can find more info here.

lwronski avatar Apr 05 '22 14:04 lwronski

We added a quick example in https://github.com/VirtusLab/scala-cli/compare/main...tgodzik:munit-cookbook?expand=1

We would need to iterate a bit more to figure out if there would be any other nice things to show.

tgodzik avatar Apr 12 '22 16:04 tgodzik