111be35a1SLionel Sambuc.\" Copyright 2012 Google Inc. 211be35a1SLionel Sambuc.\" All rights reserved. 311be35a1SLionel Sambuc.\" 411be35a1SLionel Sambuc.\" Redistribution and use in source and binary forms, with or without 511be35a1SLionel Sambuc.\" modification, are permitted provided that the following conditions are 611be35a1SLionel Sambuc.\" met: 711be35a1SLionel Sambuc.\" 811be35a1SLionel Sambuc.\" * Redistributions of source code must retain the above copyright 911be35a1SLionel Sambuc.\" notice, this list of conditions and the following disclaimer. 1011be35a1SLionel Sambuc.\" * Redistributions in binary form must reproduce the above copyright 1111be35a1SLionel Sambuc.\" notice, this list of conditions and the following disclaimer in the 1211be35a1SLionel Sambuc.\" documentation and/or other materials provided with the distribution. 1311be35a1SLionel Sambuc.\" * Neither the name of Google Inc. nor the names of its contributors 1411be35a1SLionel Sambuc.\" may be used to endorse or promote products derived from this software 1511be35a1SLionel Sambuc.\" without specific prior written permission. 1611be35a1SLionel Sambuc.\" 1711be35a1SLionel Sambuc.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1811be35a1SLionel Sambuc.\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1911be35a1SLionel Sambuc.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2011be35a1SLionel Sambuc.\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2111be35a1SLionel Sambuc.\" OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2211be35a1SLionel Sambuc.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2311be35a1SLionel Sambuc.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2411be35a1SLionel Sambuc.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2511be35a1SLionel Sambuc.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2611be35a1SLionel Sambuc.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2711be35a1SLionel Sambuc.\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28*84d9c625SLionel Sambuc.Dd April 15, 2013 2911be35a1SLionel Sambuc.Dt KYUA-REPORT-HTML 1 3011be35a1SLionel Sambuc.Os 3111be35a1SLionel Sambuc.Sh NAME 3211be35a1SLionel Sambuc.Nm report-html 3311be35a1SLionel Sambuc.Nd Generates an HTML report with the results of a test action 3411be35a1SLionel Sambuc.Sh SYNOPSIS 3511be35a1SLionel Sambuc.Nm 3611be35a1SLionel Sambuc.Op Fl -action Ar id 3711be35a1SLionel Sambuc.Op Fl -force 3811be35a1SLionel Sambuc.Op Fl -output Ar path 39*84d9c625SLionel Sambuc.Op Fl -results-filter Ar types 4011be35a1SLionel Sambuc.Op Fl -store Ar file 4111be35a1SLionel Sambuc.Sh DESCRIPTION 4211be35a1SLionel SambucThe 4311be35a1SLionel Sambuc.Nm 4411be35a1SLionel Sambuccommand provides a simple mechanism to generate HTML reports of the 4511be35a1SLionel Sambucexecution of a test suite. The command processes an action stored in the 4611be35a1SLionel Sambucdatabase and then populates a directory with multiple HTML and supporting 4711be35a1SLionel Sambucfiles to describe the results recorded in that action. 4811be35a1SLionel Sambuc.Pp 4911be35a1SLionel SambucThe HTML output is static and self-contained, so it can easily be served by 5011be35a1SLionel Sambucany simple web server. The command expects the target directory to not 5111be35a1SLionel Sambucexist, because it would overwrite any contents if not careful. 5211be35a1SLionel Sambuc.Pp 5311be35a1SLionel SambucThe following subcommand options are recognized: 5411be35a1SLionel Sambuc.Bl -tag -width XX 5511be35a1SLionel Sambuc.It Fl -action Ar id 5611be35a1SLionel SambucSpecifies the action for which to generate a report. If not provided, 5711be35a1SLionel Sambucdefaults to the latest action stored in the database. 5811be35a1SLionel Sambuc.It Fl -force 5911be35a1SLionel SambucForces the deletion of the output directory if it exists. Use care, as 6011be35a1SLionel Sambucthis effectively means a 6111be35a1SLionel Sambuc.Sq rm -rf . 6211be35a1SLionel Sambuc.It Fl -output Ar directory 6311be35a1SLionel SambucSpecifies the target directory into which to generate the HTML files. The 6411be35a1SLionel Sambucdirectory must not exist unless the 6511be35a1SLionel Sambuc.Fl -force 6611be35a1SLionel Sambucoption is provided. The default is 6711be35a1SLionel Sambuc.Pa ./html . 68*84d9c625SLionel Sambuc.It Fl -results-filter Ar types 69*84d9c625SLionel SambucComma-separated list of the test result types to include in the report. 70*84d9c625SLionel SambucThe ordering of the values is respected so that you can determine how you 71*84d9c625SLionel Sambucwant the list of tests to be shown. 72*84d9c625SLionel Sambuc.Pp 73*84d9c625SLionel SambucThe valid values are: 74*84d9c625SLionel Sambuc.Sq broken , 75*84d9c625SLionel Sambuc.Sq failed , 76*84d9c625SLionel Sambuc.Sq passed , 77*84d9c625SLionel Sambuc.Sq skipped 78*84d9c625SLionel Sambucand 79*84d9c625SLionel Sambuc.Sq xfail . 80*84d9c625SLionel SambucIf the parameter supplied to the option is empty, filtering is suppressed 81*84d9c625SLionel Sambucand all result types are shown in the report. 82*84d9c625SLionel Sambuc.Pp 83*84d9c625SLionel SambucThe default value for this flag includes all the test results except the 84*84d9c625SLionel Sambucpassed tests. Showing the passed tests by default clutters the report with 85*84d9c625SLionel Sambuctoo much information, so only abnormal conditions are included. 8611be35a1SLionel Sambuc.It Fl -store Ar path , Fl s Ar path 8711be35a1SLionel SambucSpecifies the database to use. Defaults to 8811be35a1SLionel Sambuc.Pa ~/.kyua/store.db . 8911be35a1SLionel SambucThe database is created if it does not exist. 9011be35a1SLionel Sambuc.El 9111be35a1SLionel Sambuc.Sh EXIT STATUS 9211be35a1SLionel SambucThe 9311be35a1SLionel Sambuc.Nm 9411be35a1SLionel Sambuccommand always returns 0. 9511be35a1SLionel Sambuc.Pp 9611be35a1SLionel SambucAdditional exit codes may be returned as described in 9711be35a1SLionel Sambuc.Xr kyua 1 . 9811be35a1SLionel Sambuc.Sh SEE ALSO 9911be35a1SLionel Sambuc.Xr kyua 1 , 10011be35a1SLionel Sambuc.Xr kyua-report 1 101