Skip to content

Commit 47b2223

Browse files
authored
fix(tests): regex for detecting test class name (#313)
1 parent 5d2e411 commit 47b2223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/xcodebuild/tests/provider.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function M.find_tests(opts)
3636
local selectedTests = {}
3737

3838
for _, line in ipairs(lines) do
39-
selectedClass = string.match(line, "class ([^:%s]+)%s*:?")
39+
selectedClass = string.match(line, "^[^/]*class ([^:%s]+)%s*:?")
4040
if selectedClass then
4141
break
4242
end

0 commit comments

Comments
 (0)