Skip to content

Commit

Permalink
Warn about unsupported top-level tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MisanthropicBit committed Aug 23, 2024
1 parent 0cfef5f commit 05d7294
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lua/neotest-busted/busted-util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,11 @@ local function get_runtime_test_info(tree)

tests[position_id] = test
else
-- FIX: This can happen for 'it' tests outside of a 'describe'
-- where only the test name is listed
-- NOTE: This can happen for top-level 'it' tests outside of a
-- 'describe' where only the test name is listed by busted
--
-- https://github.com/lunarmodules/busted/issues/743
logger.warn("Top-level 'it' found which is not currently supported for parametric tests")
end
end

Expand Down

0 comments on commit 05d7294

Please sign in to comment.