Skip to content

Commit 0a6177f

Browse files
committed
Fixed reporter update
1 parent cc13e45 commit 0a6177f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

report/reporter.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ def find_test(endpoint)
8383
relative_path = path[path.index('/tests')..-1]
8484

8585
File.readlines(path).each_with_index do |line, index|
86-
next unless line.split(':')[0].strip.gsub('"', '') == endpoint
86+
api = line.split(':')[0].strip.gsub('"', '')
87+
next unless api == endpoint
88+
next unless Regexp.new(/^#{api}/) =~ endpoint
8789

8890
return { endpoint: endpoint, file: ".#{relative_path}", line: index + 1 }
8991
end

0 commit comments

Comments
 (0)