@testomatio/reporter 1.2.1-beta.codecept-id → 1.2.1-beta.codecept-id.2
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/lib/adapter/codecept.js +4 -4
- package/package.json +1 -1
package/lib/adapter/codecept.js
CHANGED
|
@@ -142,7 +142,7 @@ function CodeceptReporter(config) {
|
|
|
142
142
|
if (id && failedTests.includes(id)) {
|
|
143
143
|
failedTests = failedTests.filter(failed => id !== failed);
|
|
144
144
|
}
|
|
145
|
-
const testId = parseTest(tags);
|
|
145
|
+
const testId = parseTest(`${title} ${tags.join(' ')}`);
|
|
146
146
|
const testObj = getTestAndMessage(title);
|
|
147
147
|
|
|
148
148
|
const logs = getTestLogs(test);
|
|
@@ -176,7 +176,7 @@ function CodeceptReporter(config) {
|
|
|
176
176
|
for (const test of suite.tests) {
|
|
177
177
|
const { id, tags, title } = test;
|
|
178
178
|
failedTests.push(id || title);
|
|
179
|
-
const testId = parseTest(tags);
|
|
179
|
+
const testId = parseTest(`${title} ${tags.join(' ')}`);
|
|
180
180
|
|
|
181
181
|
client.addTestRun(STATUS.FAILED, {
|
|
182
182
|
...stripExampleFromTitle(title),
|
|
@@ -194,7 +194,7 @@ function CodeceptReporter(config) {
|
|
|
194
194
|
if (test.err) error = test.err;
|
|
195
195
|
const { id, tags, title, artifacts } = test;
|
|
196
196
|
failedTests.push(id || title);
|
|
197
|
-
let testId = parseTest(tags);
|
|
197
|
+
let testId = parseTest(`${title} ${tags.join(' ')}`);
|
|
198
198
|
const testObj = getTestAndMessage(title);
|
|
199
199
|
|
|
200
200
|
const files = [];
|
|
@@ -240,7 +240,7 @@ function CodeceptReporter(config) {
|
|
|
240
240
|
const { id, tags, title } = test;
|
|
241
241
|
if (failedTests.includes(id || title)) return;
|
|
242
242
|
|
|
243
|
-
const testId = parseTest(tags);
|
|
243
|
+
const testId = parseTest(`${title} ${tags.join(' ')}`);
|
|
244
244
|
const testObj = getTestAndMessage(title);
|
|
245
245
|
client.addTestRun(STATUS.SKIPPED, {
|
|
246
246
|
...stripExampleFromTitle(title),
|