OpenSCAD Unit Testing and Documentation Tool

OpenSCAD Unit Testing and Documentation Tool

Description

**Openscad_Doctest** Is A Library For *Documentation* And *Unit Testing* Of Functions In [**Openscad**](Http://Www.Openscad.Org). Both Doc And Tests Are Written In Arrays And Processed By `Doctest()` And Output To The Console. It Has Different Modes Like Doc Only, Test Only, Show Tests As Examples (I.E., No Testing), Etc, And Capable Of Commenting On Test Cases Easily, Making It A Good Tool For Demonstrating **Demo Of Usages**. Whichever Mode It Operates On, The Output (In The Console) Can Be Copied And Pasted To A Doc Editor (Like Libreoffice Writer), And An Api Doc Can Be Generated With Very Minor Editing. The File Openscad_Doctest_Api.Html Servers As A Good Demo For This Feature. The **Unit Test** Feature Helps To Ensure Quality, Reduces Maintenance Burden, Facilitate Re-Factoring, And, My Favorite, Allows For **Test-First** Or **Test-Driven Programming**, I.E., Write The Expected Outcome Of A Function First, Then Starts Writing The Code To See If It Behaves As Expected. Note: This Lib Is Released As An [Open Source](Https://Github.Com/Runsun/Openscad_Doctest) Under **Agpl3** (That License Is Missing From Thingiverse'S License Option List When I Created This Thing).

Statistics

Likes

8

Downloads

0

Category

Other