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
ert
based 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
ert
based tests, runmake ert
. - To run only the
ert
tests matching a stringfoo
, runmake ert TEST_MATCH=foo
.