mirror of
https://github.com/pnx/neotest-phpunit
synced 2026-06-16 03:54:55 +02:00
Fix issue with tests that start with "it"
This commit is contained in:
parent
6e04f7b2e7
commit
c017340679
2 changed files with 138 additions and 380 deletions
|
|
@ -57,8 +57,9 @@ end
|
|||
local function make_outputs(test, output_file)
|
||||
logger.info("Pre-output test:", test)
|
||||
local test_attr = test["_attr"] or test[1]["_attr"]
|
||||
local name = string.gsub(test_attr.name, "it (.*)", "%1")
|
||||
|
||||
local test_id = test_attr.file .. separator .. test_attr.name
|
||||
local test_id = test_attr.file .. separator .. name
|
||||
logger.info("Pest id:", { test_id })
|
||||
|
||||
local test_output = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue