Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • new -testcase-, a testing framework for Mata

    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.

  • #2
    An mlib file has been added to the GitHub repository.

    I suggested above that users create a .mo file for testcase(). This is actually a bad suggestion. In this case an mlib file is more appropriate.

    Comment


    • #3
      Thanks to Kit Baum, testcase is now on SSC.

      Type ssc describe testcase to see a description similar to the one above. Type ssc install testcase to install.

      Comment

      Working...
      X