@testomatio/reporter 2.22.0 → 2.23.0
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/allureReader.js +5 -1
- package/lib/xmlReader.js +5 -1
- package/package.json +1 -1
- package/src/allureReader.js +4 -1
- package/src/xmlReader.js +4 -1
package/lib/allureReader.js
CHANGED
|
@@ -890,7 +890,11 @@ class AllureReader {
|
|
|
890
890
|
uploadedTests += chunk.length;
|
|
891
891
|
debug(`Uploaded ${uploadedTests}/${totalTests} tests`);
|
|
892
892
|
}
|
|
893
|
-
|
|
893
|
+
const testomatioPipe = this.pipes.find(p => p.constructor.name === 'TestomatioPipe');
|
|
894
|
+
if (testomatioPipe && !testomatioPipe.isEnabled) {
|
|
895
|
+
console.warn(constants_js_1.APP_PREFIX, `⚠️ Tests were not uploaded to Testomat.io, skipping report`);
|
|
896
|
+
}
|
|
897
|
+
else if (totalChunks > 1) {
|
|
894
898
|
console.log(constants_js_1.APP_PREFIX, `✅ Successfully uploaded ${uploadedTests} tests in ${totalChunks} chunks`);
|
|
895
899
|
}
|
|
896
900
|
else {
|
package/lib/xmlReader.js
CHANGED
|
@@ -519,7 +519,11 @@ class XmlReader {
|
|
|
519
519
|
uploadedTests += chunk.length;
|
|
520
520
|
debug(`Uploaded ${uploadedTests}/${totalTests} tests`);
|
|
521
521
|
}
|
|
522
|
-
|
|
522
|
+
const testomatioPipe = this.pipes.find(p => p.constructor.name === 'TestomatioPipe');
|
|
523
|
+
if (testomatioPipe && !testomatioPipe.isEnabled) {
|
|
524
|
+
log_js_1.log.warn(`⚠️ Tests were not uploaded to Testomat.io, skipping report`);
|
|
525
|
+
}
|
|
526
|
+
else if (totalChunks > 1) {
|
|
523
527
|
log_js_1.log.info(`✅ Successfully uploaded ${uploadedTests} tests in ${totalChunks} chunks`);
|
|
524
528
|
}
|
|
525
529
|
else {
|
package/package.json
CHANGED
package/src/allureReader.js
CHANGED
|
@@ -986,7 +986,10 @@ class AllureReader {
|
|
|
986
986
|
debug(`Uploaded ${uploadedTests}/${totalTests} tests`);
|
|
987
987
|
}
|
|
988
988
|
|
|
989
|
-
|
|
989
|
+
const testomatioPipe = this.pipes.find(p => p.constructor.name === 'TestomatioPipe');
|
|
990
|
+
if (testomatioPipe && !testomatioPipe.isEnabled) {
|
|
991
|
+
console.warn(APP_PREFIX, `⚠️ Tests were not uploaded to Testomat.io, skipping report`);
|
|
992
|
+
} else if (totalChunks > 1) {
|
|
990
993
|
console.log(APP_PREFIX, `✅ Successfully uploaded ${uploadedTests} tests in ${totalChunks} chunks`);
|
|
991
994
|
} else {
|
|
992
995
|
console.log(APP_PREFIX, `✅ Successfully uploaded ${uploadedTests} tests`);
|
package/src/xmlReader.js
CHANGED
|
@@ -610,7 +610,10 @@ class XmlReader {
|
|
|
610
610
|
debug(`Uploaded ${uploadedTests}/${totalTests} tests`);
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
-
|
|
613
|
+
const testomatioPipe = this.pipes.find(p => p.constructor.name === 'TestomatioPipe');
|
|
614
|
+
if (testomatioPipe && !testomatioPipe.isEnabled) {
|
|
615
|
+
log.warn(`⚠️ Tests were not uploaded to Testomat.io, skipping report`);
|
|
616
|
+
} else if (totalChunks > 1) {
|
|
614
617
|
log.info(`✅ Successfully uploaded ${uploadedTests} tests in ${totalChunks} chunks`);
|
|
615
618
|
} else {
|
|
616
619
|
log.info(`✅ Successfully uploaded ${uploadedTests} tests`);
|