location of test output

16 views
Skip to first unread message

Chuck Tuffli

unread,
Nov 5, 2015, 11:46:03 AM11/5/15
to kyua-discuss
When a test case fails, kyua prints

foo:testcase1 ->  failed: 1 checks failed; see output for more details  [0.002s]

Where is the output this message references? A log file? Database? Report? The test case in question uses ATF_CHECK_MSG() if that matters. TIA

--chuck

Craig Rodrigues

unread,
Nov 5, 2015, 11:55:36 AM11/5/15
to kyua-d...@googlegroups.com
On Thu, Nov 5, 2015 at 8:46 AM, Chuck Tuffli <ctu...@gmail.com> wrote:

Where is the output this message references? A log file? Database? Report? The test case in question uses ATF_CHECK_MSG() if that matters. TIA

By default, there are logs and a sqlite database stored under $HOME/.kyua/

After doing:

kyua test

in order to see the errors from that you should type on of:

kyua report --verbose
kyua report-html
kyua report-junit

to see the test logs from the last invocatio of "kyua test".

--
Craig

Chuck Tuffli

unread,
Nov 5, 2015, 8:15:30 PM11/5/15
to kyua-discuss, rod...@freebsd.org

kyua report --verbose was the magic I needed. Thanks Craig!

--chuck

NGie Cooper

unread,
Nov 5, 2015, 8:47:04 PM11/5/15
to kyua-d...@googlegroups.com, Craig Rodrigues
In previous releases you could run `kyua report...` from anywhere and
it would dump the last results. Newer code requires you to either
specify the exact database or be in the exact path where you ran the
tests when you run the command, e.g. running `kyua report-html` from
/usr/tests is completely different than running it from
/usr/tests/bin/sh .
HTH,
-NGie
Reply all
Reply to author
Forward
0 new messages