@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.
- package/README.md +4 -2
- package/lib/allureReader.d.ts +65 -0
- package/lib/allureReader.js +456 -0
- package/lib/bin/cli.js +28 -0
- package/lib/client.js +1 -1
- package/lib/junit-adapter/index.js +4 -0
- package/lib/junit-adapter/kotlin.d.ts +5 -0
- package/lib/junit-adapter/kotlin.js +46 -0
- package/lib/utils/log-formatter.d.ts +2 -2
- package/lib/utils/log-formatter.js +1 -1
- package/lib/utils/utils.js +9 -0
- package/package.json +1 -1
- package/src/allureReader.js +532 -0
- package/src/bin/cli.js +35 -0
- package/src/client.js +1 -1
- package/src/junit-adapter/index.js +4 -0
- package/src/junit-adapter/kotlin.js +48 -0
- package/src/utils/log-formatter.js +1 -1
- package/src/utils/utils.js +5 -0
package/src/utils/utils.js
CHANGED
|
@@ -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}(`));
|