And I found that neotest-go adapter here has a code like these
local test_statuses = {
-- ...
pass = "passed", -- the test passed
fail = "failed", -- the test or benchmark failed
skip = "skipped", -- the test was skipped or the package contained no tests
}
I think that probably other adapters use similar declarations to set the status field of a neotest.Result Maybe these constants could be defined in neotest, that way all plugins could use it and we avoid code duplication, maybe a module like neotest.lib.constants would be cool.
I personally use these other constants too when computing command field of the neotest.RunSpec.
NODE_TYPES = {
dir = "dir",
file = "file",
namespace = "namespace",
test = "test",
}
Hi, I am developing an adapter to integrate neotest with hardhat. I have a code like these
And I found that neotest-go adapter here has a code like these
I think that probably other adapters use similar declarations to set the
status
field of aneotest.Result
Maybe these constants could be defined in neotest, that way all plugins could use it and we avoid code duplication, maybe a module likeneotest.lib.constants
would be cool.I personally use these other constants too when computing
command
field of theneotest.RunSpec
.