1
0
Fork 0
mirror of https://github.com/pnx/neotest-phpunit synced 2026-06-16 03:54:55 +02:00

Add additional logging

This commit is contained in:
Michael Utz 2022-11-16 11:34:30 +03:00
parent a861622208
commit 0e7e90334f

View file

@ -55,6 +55,7 @@ end
---@param output_file string
---@return table
local function make_outputs(test, output_file)
logger.info("Pre-output test:", test)
local test_attr = test["_attr"] or test[1]["_attr"]
local test_id = test_attr.file .. separator .. test_attr.name
@ -67,6 +68,8 @@ local function make_outputs(test, output_file)
}
local test_failed = errors_or_fails(test)
logger.info("test_failed:", test_failed)
if test_failed then
test_output.status = "failed"
test_output.short = test_failed[1]["failure"] or test_failed[1]["errors"]