1
0
Fork 0
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:
Michael Utz 2022-11-16 17:11:56 +03:00
parent 6e04f7b2e7
commit c017340679
2 changed files with 138 additions and 380 deletions

View file

@ -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 = {