Open stefanw opened 12 years ago
I'd say, a BDD style Functional Tests could be the only sensible way here. "Given When Then..." is something you can clearly apply to laws, and Testing Frameworks like Concordion allow an executable (HTML or similar) document to run automatically. I guess if you apply this in a sensible way to Markdown, one should be able to track changes in the legal document, let's say the paragraph refers to a legal age of 21 years for some constraint and the law (text) is changed to 18 or another value, the test would fail;-) JBehave is another option, there are a few, most of them use Java for the underlying DSL or execution layer, but there should proper BDD frameworks in other languages, e.g. Lettuce, the Python answer to Cucumber.
CI is awesome, but how to test laws? Some ideas:
Having TravisCI test law change proposals would be mind-boggingly sweet.