@testomatio/reporter 2.7.2 → 2.7.3-beta.3.allure

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -289,6 +289,11 @@ const fetchSourceCode = (contents, opts = {}) => {
289
289
  if (lineIndex === -1) lineIndex = lines.findIndex(l => l.includes(`@DisplayName("${title}`));
290
290
  if (lineIndex === -1) lineIndex = lines.findIndex(l => l.includes(`public void ${title}`));
291
291
  if (lineIndex === -1) lineIndex = lines.findIndex(l => l.includes(`${title}(`));
292
+ } else if (opts.lang === 'kotlin') {
293
+ lineIndex = lines.findIndex(l => l.includes(`fun test${title}`));
294
+ if (lineIndex === -1) lineIndex = lines.findIndex(l => l.includes(`@DisplayName("${title}`));
295
+ if (lineIndex === -1) lineIndex = lines.findIndex(l => l.includes(`fun ${title}`));
296
+ if (lineIndex === -1) lineIndex = lines.findIndex(l => l.includes(`${title}(`));
292
297
  } else if (opts.lang === 'csharp') {
293
298
  // Find the method declaration line
294
299
  let methodLineIndex = lines.findIndex(l => l.includes(`public void ${title}(`));