kinode-dao / kit

Development toolkit for Kinode OS
Apache License 2.0
11 stars 2 forks source link

make writing tests easier #98

Closed nick1udwig closed 2 months ago

nick1udwig commented 7 months ago

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

nick1udwig commented 5 months ago

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

nick1udwig commented 2 months ago

169