I've made a code-testing framework for Mata called testcase. At the moment it's only available from GitHub, at https://github.com/jrfiedler/mata_testcase. There is no .mo file yet, so you'll have to create one or do run testcase.mata before using.
A brief description of usage is given at https://github.com/jrfiedler/mata_testcase. In short, the functionality comes from a Mata class, also called testcase. Tests are made by sub-classing testcase, and tests are written as methods of the sub-class, using assert methods inherited from testcase.
For a complete example see EXAMPLES.md.
For a detailed explanation of testcase methods and attributes see DOC.md
Feedback is welcome.
A brief description of usage is given at https://github.com/jrfiedler/mata_testcase. In short, the functionality comes from a Mata class, also called testcase. Tests are made by sub-classing testcase, and tests are written as methods of the sub-class, using assert methods inherited from testcase.
For a complete example see EXAMPLES.md.
For a detailed explanation of testcase methods and attributes see DOC.md
Feedback is welcome.
Comment