kinode-dao/kit

make writing tests easier

Closed this issue · 2 comments

Writing tests is not easy, currently. There is the https://github.com/kinode-dao/core_tests repo, which can be used as an example, but it is more made for function than example. There is a lot of boilerplate.

This has led to an easier testing method for simple tests: just write in-Kinode script(s) that do whatever thing and output the result.

This is fine, but indicates that there is room to make run-tests easier to use OR provide some other tool(s) to make this lightweight testing easier.

One possibility is a lighter-weight framework/tool.

Another possibility is to make use of our template system in kit new to provide templates for tests -- this gets rid of a lot of the problem wrt boilerplate, since you can just get the template and modify it for your needs.

h/t @jaxs-ribs

We should copy forge. Namely we should include a tests/ dir in our templates.