KYUA-REPORT-HTML(1)
π
kyua-report-html β the General Commands Manual page, but make it cute
okay bestie, buckle up, because kyua-report-html(1) is genuinely one of the most satisfying little commands in the whole kyua family and I need you to know about it π
β¨ NAME β¨
kyua report-html β generates an HTML report with the results of a test suite run π¦
π SYNOPSIS π
kyua report-html [--force] [--output path] [--results-file file]
[--results-filter types]
π DESCRIPTION π
so like, the kyua report-html command is your girl for turning test results into a whole vibe. it gives you a simple mechanism to generate HTML reports of the execution of a test suite πΈ
here's the tea: the command processes a results file, and then it populates a directory with multiple HTML and supporting files to describe the results recorded in that results file. it's giving scrapbook but make it test data, fr fr πΈ
the HTML output is static and self-contained, so it can easily be served by any simple web server β no cap, no build step, no nonsense β¨
β οΈ but listen, the command expects the target directory to not exist, because it would overwrite any contents if not careful. she is not playing around. π
the following subcommand options are recognized π
--forceβ forces the deletion of the output directory if it exists. use care, bestie, because this effectively means arm -rf. yes, thatrm -rf. π--outputdirectory β specifies the target directory into which to generate the HTML files. the directory must not exist unless the--forceoption is provided. the default is./html. π--results-filepath,-spath β specifies the results file to operate on. defaults toLATEST, which causeskyua report-htmlto automatically load the latest results file from the current test suite. iykyk β¨
the following values are accepted:
LATESTβ requests the load of the latest results file available for the test suite rooted at the current directory. π¦- Directory β requests the load of the latest results file available for the test suite rooted at the given directory. π
- Test suite name β requests the load of the latest results file available for the given test suite. π
- Results identifier β requests the load of a specific results file. π
- Explicit file name (aka everything else) β load the specified results file. π
see βResults filesβ for more details.
--results-filtertypes β comma-separated list of the test result types to include in the report. the ordering of the values is respected, so you can determine how you want the list of tests to be shown. she's an ordered queen π
the valid values are: broken, failed, passed, skipped and xfail.
if the parameter supplied to the option is empty, filtering is suppressed and all result types are shown in the report. the full spectrum, the whole rainbow π
the default value for this flag includes all the test results except the passed tests. showing the passed tests by default clutters the report with too much information, so only abnormal conditions are included. lowkey a mood, honestly. π
ποΈ Results files ποΈ
results files contain, as their name implies, the results of the execution of a test suite. each test suite executed by kyua-test(1) generates a new results file, and such results files can be loaded later on by inspection commands such as kyua-report(1) to analyze their contents. it's a whole archive situation π«Ά
results files support identifier-based lookups and also path name lookups. the differences between the two are described below.
the default naming scheme for the results files provides simple support for identifier-based lookups and historical recording of test suite runs. each results file is given an identifier derived from the test suite that generated it and the time the test suite was run. kyua can later look up results files by these fields. so organized of her β
the identifier follows this pattern:
<test_suite>.<YYYYMMDD>-<HHMMSS>-<uuuuuu>
where test_suite is the path to the root of the test suite that was run with all slashes replaced by underscores, and YYYYMMDD-HHMMSS-uuuuuu is a timestamp with microsecond resolution. precise. iconic. π
when using the default naming scheme, results files are stored in the ~/.kyua/store/ subdirectory and each file holds a name of the form:
~/.kyua/store/results.<identifier>.db
results files are simple SQLite databases with the schema described in the /usr/share/kyua/store/schema_v?.sql files. for details on the schema, please refer to the heavily commented SQL file. she left notes for you, bestie π
πͺ EXIT STATUS πͺ
the kyua report-html command always returns 0. always. unbothered. moisturized. in her lane. π
additional exit codes may be returned as described in kyua(1).
π EXAMPLES π
π§ Workflow with results files π§
if one runs the following command twice in a row:
kyua test -k /usr/tests/Kyuafile
the two executions will generate two different files with names like:
~/.kyua/store/results.usr_tests.20140731-150500-196784.db
~/.kyua/store/results.usr_tests.20140731-151730-997451.db
taking advantage of the default naming scheme, the following commands would all generate a report for the results of the latest execution of the test suite:
cd /usr/tests && kyua report-html
cd /usr/tests && kyua report-html --results-file=LATEST
kyua report-html --results-file=/usr/tests
kyua report-html --results-file=usr_tests
kyua report-html --results-file=usr_tests.20140731-151730-997451
but it is also possible to explicitly load data for older runs or from explicitly-named files:
kyua report-html \
--results-file=usr_tests.20140731-150500-196784
kyua report-html \
--results-file=~/.kyua/store/results.usr_tests.20140731-150500-196784.db
see? flexible. versatile. she contains multitudes π¦β¨
π SEE ALSO π
kyua(1), kyua-report(1), kyua-report-junit(1)
and that's the whole page, bestie!! this one came from the Debian crew, dated October 13, 2014 β shoutout to them for shipping a command this clean π«Ά go make some gorgeous static HTML reports, you absolute main character ππ
π¦ where this page comes from
- alpine 3.23: kyua-doc 0.14.1-r0 Β· BSD-3-Clause
- alpine 3.24: kyua-doc 0.14.1-r0 Β· BSD-3-Clause
- debian bookworm: kyua 0.13+git20190402+a685f911237e-1+b1 Β· BSD-3-Clause
- debian trixie: kyua 0.13+git20240311+0a43bb8d89e3-3 Β· BSD-3-Clause
- ubuntu jammy: kyua 0.13+git20190402+a685f911237e-1 Β· BSD-3-Clause
- ubuntu noble: kyua 0.13+git20190402+a685f911237e-1build2 Β· BSD-3-Clause
- ubuntu questing: kyua 0.13+git20240311+0a43bb8d89e3-3
- ubuntu resolute: kyua 0.13+git20240311+0a43bb8d89e3-3build1 Β· BSD-3-Clause
- ubuntu stonking: kyua 0.13+git20240311+0a43bb8d89e3-3build1 Β· BSD-3-Clause
- Copyright 2012 The Kyua Authors
- Copyright 2014 The Kyua Authors
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms