1 .\" Copyright 2012 Google Inc.
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions are
8 .\" * Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" * Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
13 .\" * Neither the name of Google Inc. nor the names of its contributors
14 .\" may be used to endorse or promote products derived from this software
15 .\" without specific prior written permission.
17 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 .\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 .\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 .\" OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 .\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 .\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 .Nd Kyua-based implementation of the deprecated atf-report
36 .Op Fl o Ar fmt1:path1 Op .. Fl o Ar fmtN:pathN
41 provides a reimplementation of ATF's reporting engine built on top of Kyua.
42 This is a transitional script and should only be considered a helper to
43 migrate away from ATF.
44 Therefore, this version of
52 the specific output of the command.
53 The output of this implementation is significantly different as that of the
55 Please migrate to using
60 section below for further details.
65 and transforms it to different formats.
66 Some of these are user-friendly and others are machine-parseable, which
67 opens a wide range of possibilities to analyze the results of a test
71 below for more details on which these formats are.
73 In the first synopsis form,
77 through its standard input and, if no
79 option is given, prints a user-friendly report on its standard
85 option is provided, it specifies the output format to use and its
88 The following options are available:
89 .Bl -tag -width XoXfmtXpathXX
91 Adds a new output format.
93 is one of the formats described later on in
96 specifies where the report will be written to.
97 Depending on the chosen format, this may refer to a single file or to
99 For those formats that write to a single file, specifying a
101 as the path will redirect the report to the standard output.
104 The following output formats are allowed:
105 .Bl -tag -width tickerXX
107 A user-friendly report that shows the progress of the test suite's
108 execution as it operates.
109 This type of report should always be redirected to a virtual terminal,
110 not a file, as it may use control sequences that will make the output
111 unreadable in regular files.
113 A multi-file HTML report.
114 The specified output file will be a symlink into a directory containing
115 all the other support files for the HTML report.
117 This format was not originally supported by
119 but is the right name for the compatibility
123 A compatibility name for
127 was only able to generate XML reports and relied on tools like
129 to convert them to HTML.
130 The process was quite convoluted and inconvenient.
131 Kyua, on the other hand, is only able to create HTML reports at the
142 The most important thing to understand during the transition is that
144 stores the output of the execution in a database and does not print a
145 machine-parseable log to its stdout.
148 is used as a second step to extract reports from the database for any
149 previously executed test.
151 The following examples show how to convert some common
153 invocations to their corresponding
158 has always been tied to
160 these examples also mention the latter.
161 .Bd -literal -offset indent
162 ### Run all tests, with a summary at the end.
163 $ atf-run | atf-report
164 $ kyua test && kyua report
166 ### Generate a HTML report.
167 $ atf-run | atf-report -o xml:report.xml
168 ... plus some complex file manipulation and xsltproc magic ...
169 $ kyua test && kyua report-html -o path/to/report/