4 xfstestsdb xunit properties
Anna edited this page 2023-02-10 13:41:18 -05:00

The xfstestsdb xunit properties command prints out the xunit property entries that have been added to the xunit_properties database table.

This command will print output in color by default when running in interactive mode. The "--color=" option can be used to print output in either light or dark color schemes or to disable color altogether. The default color scheme is "dark", but this can be overridden by setting the XFSTESTSDB_COLORS environment variable. The FORCE_COLOR and NO_COLOR environment variables can be used to force or disable color usage, which can be useful when piping to another command such as less -r

The table will be printed with Run, Xunit, Property, and Value columns.

The --property=, --runid=, --value=, --xunit=, options are used to narrow down the entries that are printed out to those that have a matching property, runid, xunit, or value. These options can be combined, and take a valid SQLite GLOB pattern.

Invocation

$ xfstestsdb xunit properties [--color[={light|dark|none}]] [--property <property>] [--runid <tag>] [--value <value>] [--xunit <xunit>]

Options

Options Choices Description
--color[=] light, dark, none The color output choice
--property= Show entries that match the given property name pattern
--runid= Show entries that match the given runid pattern
--value= Show entries that match the given property value pattern
--xunit= Show entries that match the given xunit pattern

Exit

Exit Code Description
0 The results have been successfully printed out

Examples

$ xfstestsdb xunit properties --color=none
+-----+---------+------------+---------+
| Run | Xunit   | Property   | Value   |
+-----+---------+------------+---------+
|   1 | xunit-1 | PROPERTY_1 | value 1 |
|   1 | xunit-1 | PROPERTY_2 | value 2 |
|   1 | xunit-1 | PROPERTY_3 | value 3 |
|   2 | xunit-2 | PROPERTY_1 | value 1 |
|   2 | xunit-2 | PROPRETY_2 | value 2 |
|   2 | xunit-2 | PROPRETY_3 | value 3 |
+-----+---------+------------+---------+
$ xfstestsdb xunit properties --property "*_2" --color=none
+-----+---------+------------+---------+
| Run | Xunit   | Property   | Value   |
+-----+---------+------------+---------+
|   1 | xunit-1 | PROPERTY_2 | value 2 |
|   2 | xunit-2 | PROPRETY_2 | value 2 |
+-----+---------+------------+---------+