mirror of
https://github.com/pnx/neotest-phpunit
synced 2026-06-16 03:54:55 +02:00
Remove leftover notify calls
This commit is contained in:
parent
51217960f8
commit
52f9aab7a2
3 changed files with 2 additions and 17 deletions
2
LICENSE
2
LICENSE
|
|
@ -1,6 +1,6 @@
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2022 Michael Utz
|
Copyright (c) 2024 V13Axel
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
|
||||||
|
|
@ -4,20 +4,6 @@ local utils = require('neotest-pest.utils')
|
||||||
local config = require('neotest-pest.config')
|
local config = require('neotest-pest.config')
|
||||||
local debug = logger.debug
|
local debug = logger.debug
|
||||||
|
|
||||||
local notify = function(msg, level)
|
|
||||||
vim.notify(msg, level, {
|
|
||||||
title = "neotest-pest",
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
local error = function(msg)
|
|
||||||
notify(msg, "error")
|
|
||||||
end
|
|
||||||
|
|
||||||
local info = function(msg)
|
|
||||||
notify(msg, "info")
|
|
||||||
end
|
|
||||||
|
|
||||||
---@class neotest.Adapter
|
---@class neotest.Adapter
|
||||||
---@field name string
|
---@field name string
|
||||||
local NeotestAdapter = { name = "neotest-pest" }
|
local NeotestAdapter = { name = "neotest-pest" }
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ local separator = "::"
|
||||||
|
|
||||||
---Generate an id which we can use to match Treesitter queries and Pest tests
|
---Generate an id which we can use to match Treesitter queries and Pest tests
|
||||||
---@param position neotest.Position The position to return an ID for
|
---@param position neotest.Position The position to return an ID for
|
||||||
---@param namespace neotest.Position[] Any namespaces the position is within
|
|
||||||
---@return string
|
---@return string
|
||||||
M.make_test_id = function(position)
|
M.make_test_id = function(position)
|
||||||
-- Treesitter ID needs to look like 'tests/Unit/ColsHelperTest.php::it returns the proper format'
|
-- Treesitter ID needs to look like 'tests/Unit/ColsHelperTest.php::it returns the proper format'
|
||||||
|
|
@ -63,7 +62,7 @@ end
|
||||||
---Make the outputs for a given test
|
---Make the outputs for a given test
|
||||||
---@param test table
|
---@param test table
|
||||||
---@param output_file string
|
---@param output_file string
|
||||||
---@return table
|
---@return string, table
|
||||||
local function make_outputs(test, output_file)
|
local function make_outputs(test, output_file)
|
||||||
logger.debug("Pre-output test:", test)
|
logger.debug("Pre-output test:", test)
|
||||||
local test_attr = test["_attr"] or test[1]["_attr"]
|
local test_attr = test["_attr"] or test[1]["_attr"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue