mirror of
https://github.com/pnx/neotest-phpunit
synced 2026-07-02 11:43:39 +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
|
||||||
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)
|
logger.debug("test_output:", test_output)
|
||||||
|
|
||||||
return test_id, test_output
|
return test_id, test_output
|
||||||
|
|
|
||||||
|
|
@ -374,7 +374,7 @@ describe("get_test_results", function()
|
||||||
class = "Tests\\Feature\\UserTest",
|
class = "Tests\\Feature\\UserTest",
|
||||||
classname = "Tests.Feature.UserTest",
|
classname = "Tests.Feature.UserTest",
|
||||||
file = "/Users/michaelutz/Code/neotest-pest/tests/Feature/UserTest.php",
|
file = "/Users/michaelutz/Code/neotest-pest/tests/Feature/UserTest.php",
|
||||||
name = "tellName",
|
name = "skipped",
|
||||||
time = "0.001544"
|
time = "0.001544"
|
||||||
},
|
},
|
||||||
skipped = {}
|
skipped = {}
|
||||||
|
|
@ -385,10 +385,10 @@ describe("get_test_results", function()
|
||||||
}
|
}
|
||||||
|
|
||||||
local expected = {
|
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,
|
output_file = output_file,
|
||||||
short = "PASSED | tellName",
|
short = "SKIPPED | skipped",
|
||||||
status = "passed"
|
status = "skipped"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue