browserstack-cypress-cli 1.24.2 → 1.24.3
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.
|
@@ -741,6 +741,9 @@ exports.setTestObservabilityFlags = (bsConfig) => {
|
|
|
741
741
|
/* testObservability */
|
|
742
742
|
let isTestObservabilitySession = false;
|
|
743
743
|
try {
|
|
744
|
+
/* set default again but under try catch in case of wrong config */
|
|
745
|
+
isTestObservabilitySession = utils.nonEmptyArray(bsConfig.run_settings.downloads) ? false : true;
|
|
746
|
+
|
|
744
747
|
if(!utils.isUndefined(bsConfig["testObservability"])) isTestObservabilitySession = ( bsConfig["testObservability"] == true || bsConfig["testObservability"] == 1 );
|
|
745
748
|
if(!utils.isUndefined(process.env.BROWSERSTACK_TEST_OBSERVABILITY)) isTestObservabilitySession = ( process.env.BROWSERSTACK_TEST_OBSERVABILITY == "true" || process.env.BROWSERSTACK_TEST_OBSERVABILITY == "1" );
|
|
746
749
|
if(process.argv.includes('--disable-test-observability')) isTestObservabilitySession = false;
|
|
@@ -750,7 +753,6 @@ exports.setTestObservabilityFlags = (bsConfig) => {
|
|
|
750
753
|
exports.debug(`EXCEPTION while parsing testObservability capability with error ${e}`, true, e);
|
|
751
754
|
}
|
|
752
755
|
|
|
753
|
-
|
|
754
756
|
/* browserstackAutomation */
|
|
755
757
|
let isBrowserstackInfra = true;
|
|
756
758
|
try {
|
|
@@ -762,6 +764,7 @@ exports.setTestObservabilityFlags = (bsConfig) => {
|
|
|
762
764
|
exports.debug(`EXCEPTION while parsing browserstackAutomation capability with error ${e}`, true, e);
|
|
763
765
|
}
|
|
764
766
|
|
|
767
|
+
if(isTestObservabilitySession) logger.warn("testObservability is set to true. Other test reporters you are using will be automatically disabled. Learn more at browserstack.com/docs/test-observability/overview/what-is-test-observability");
|
|
765
768
|
|
|
766
769
|
process.env.BROWSERSTACK_TEST_OBSERVABILITY = isTestObservabilitySession;
|
|
767
770
|
process.env.BROWSERSTACK_AUTOMATION = isBrowserstackInfra;
|