mirror of
https://github.com/pnx/neotest-phpunit
synced 2026-06-16 03:54:55 +02:00
Add support for skipped files
This commit is contained in:
parent
2c652f9d90
commit
46cdb550c8
2 changed files with 9 additions and 4 deletions
|
|
@ -99,6 +99,11 @@ local function make_outputs(test, output_file)
|
|||
end
|
||||
end
|
||||
|
||||
if test['skipped'] then
|
||||
test_output.status = "skipped"
|
||||
test_output.short = make_short_output(test_attr, "skipped")
|
||||
end
|
||||
|
||||
logger.debug("test_output:", test_output)
|
||||
|
||||
return test_id, test_output
|
||||
|
|
|
|||
|
|
@ -374,7 +374,7 @@ describe("get_test_results", function()
|
|||
class = "Tests\\Feature\\UserTest",
|
||||
classname = "Tests.Feature.UserTest",
|
||||
file = "/Users/michaelutz/Code/neotest-pest/tests/Feature/UserTest.php",
|
||||
name = "tellName",
|
||||
name = "skipped",
|
||||
time = "0.001544"
|
||||
},
|
||||
skipped = {}
|
||||
|
|
@ -385,10 +385,10 @@ describe("get_test_results", function()
|
|||
}
|
||||
|
||||
local expected = {
|
||||
["/Users/michaelutz/Code/neotest-pest/tests/Feature/UserTest.php::tellName"] = {
|
||||
["/Users/michaelutz/Code/neotest-pest/tests/Feature/UserTest.php::skipped"] = {
|
||||
output_file = output_file,
|
||||
short = "PASSED | tellName",
|
||||
status = "passed"
|
||||
short = "SKIPPED | skipped",
|
||||
status = "skipped"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue