We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc13e45 commit 0a6177fCopy full SHA for 0a6177f
report/reporter.rb
@@ -83,7 +83,9 @@ def find_test(endpoint)
83
relative_path = path[path.index('/tests')..-1]
84
85
File.readlines(path).each_with_index do |line, index|
86
- next unless line.split(':')[0].strip.gsub('"', '') == endpoint
+ api = line.split(':')[0].strip.gsub('"', '')
87
+ next unless api == endpoint
88
+ next unless Regexp.new(/^#{api}/) =~ endpoint
89
90
return { endpoint: endpoint, file: ".#{relative_path}", line: index + 1 }
91
end
0 commit comments