ox-hugo is tested using two kinds of test suites:
- Export all the test Org files (includes file-based and subtree-based export tests) to Markdown and diff the exported Markdown against the committed reference versions.
- Run
ertbased tests.
Steps to run tests on your machine:
- Clone this repo.
- Ensure that
pandoc(at least version 2.16.2) is installed (more info here). - Run
make -j1 test. This runs all the tests from the two kinds of test suites described above.
ert tests #
- To run all
ertbased tests, runmake ert. - To run only the
erttests matching a stringfoo, runmake ert TEST_MATCH=foo.