<div dir="ltr"><div>Thomas,</div><div><br></div><div dir="ltr">The attached file shows a light weight, self contained, compile-time unit-test framework that I made.  It allows tests to be collocated in the source with the associated functions under test, rather than spread over the file system in other files.  If any of the unit tests fail at compile time, you get no object files/c files/exe, which I've not seen elsewhere.  Closest thing I've seen that's comparable is Python's doctests, but mine is better, because I wrote it :-)<br></div><div dir="ltr"><div><br></div><div><div>The file attached is one that I adapted from the following work that I did years ago: <a href="https://billsix.github.io/bug.html">https://billsix.github.io/bug.html</a> <a href="https://github.com/billsix/bug">https://github.com/billsix/bug</a></div></div></div><div><br></div><div>Hope it helps,</div><div><br></div>Bill<div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 2, 2022 at 5:38 PM Thomas Hage <<a href="mailto:thomas.hage@live.de">thomas.hage@live.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hi,<br>
<br>
I am learning Scheme on my own by exploring gambit by personal <br>
needs.<br>
Therefore there is a huge lack of experience on my side.<br>
<br>
Prior to my current project I felt in love with Test Driven <br>
Development.<br>
Scheme enabled me to improve my workflow by programming <br>
interactive - sufficiating my own requirements.<br>
The downside is that I am unable to include unit test into my <br>
current workflow. Any advice would be appreciated.<br>
<br>
In order to cover my current project in retrospective, I want to <br>
create tests (note that the usability of the provided test suite <br>
requires heavy exploration >:-) ).<br>
In both cases - testing afterwards or prior to implementing <br>
functionality - I am relying on branch coverage heavily.<br>
Since I am covering R5RS only, I am wondering if there is a test <br>
suite which can provide me with branch coverage (regardless of <br>
output formats/IDE's).<br>
<br>
I am aware about the following two facts:<br>
 - In order to programming test-driven, a IDE suggestion <br>
 implementations is required (not required)<br>
 - the functional programming paradigm should enable me to cover <br>
 my code by determine the permutations of arguments. I want to <br>
 support this with branch coverage, so that I suspend my current <br>
 workflow and resume afterwards.<br>
<br>
I am happy about sincerely feedback.<br>
<br>
Thomas<br>
<br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca" target="_blank">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://mailman.iro.umontreal.ca/cgi-bin/mailman/listinfo/gambit-list" rel="noreferrer" target="_blank">https://mailman.iro.umontreal.ca/cgi-bin/mailman/listinfo/gambit-list</a><br>
<br>
</blockquote></div></div></div>