A Clojure integration test library inspired by the notion of literate testing.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

2.0 KiB

itl tables

The itl library's primary purpose is to examine a Markdown document, parse its contents, and execute any tables that are marked as executable. The results of table execution are then stamped back into the contents of the table itself. The way a table is marked as executable is by putting a line at the bottom of the table with a special syntax.

Basically, what happens is that the table is parsed into a data structure and then passed to a special processor. That processor is chosen based on the type of table at the bottom of the table. Optionally, if a table type needs a function to execute, that function may be specified separately. Finally, a table may take a sequence of arguments that are passed into the type processor as well as the function that is used to process the contents of the table itself.

Here is the syntax for executing a table:

(<table-type>:[<support-function>][ var1=val1[ var2=val2 (etc)]])

!!! abstract "tables:Table Test Suite" The following describes all table type except one: execute-pages. That table will be described and shown here. This table does not take a support function, and does take several arguments. All of those arguments are demonstrated at the bottom of this table

File Result Pass Fail Exception
decision-table.md tables/decision-table.html 13 1 0
baseline-decision-table.md tables/baseline-decision-table.html 17 0 0
query-table.md tables/query-table.html 6 6 0
table-table.md tables/table-table.html 19 1 0
function-table.md tables/function-table.html 7 0 2
use-table.md tables/use-table.html 0 0 1
[(execute-pages: indir=tests, outdir=docs/tables, parallel=true)]