luaunitをインストールする。
luarocks install luaunit
lcovtoolsをインストールする。
luarocksに対応していないため、自分の環境でビルドしてlcovtools.dllをclibsにコピーする。
以下からmsxsl.exeを入手する。
all_test.luaを実行するとすべてのテストを実行して、result.xmlというXML形式の解析データを出力。
lua test/all_test.lua -v
lcovtoolsのPythonスクリプトを適当な場所にコピーする。
以下のコマンドを実行すると、report.xmlにコードカバレッジレポートをXML形式で出力。
python scripts/extractlines.py lua\openrtm\*.lua > validLines.xml python scripts/makereport.py validLines.xml result.xml report.xml -b ./
lcovtoolsのlua.css、report.xslを適当な場所にコピーする。
以下のコマンドでreport.htmlを出力。
msxsl report.xml report.xsl -o report.html