You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added local_mode and cli args.
Calculate local_identifier based on local_mode.
* Adding Local Binary start and stop logic
* Adding demand message for local-identifier and local-mode options
* Adding log messages for sync and local mode
* upgrading yargs and putting requiredArgs
* passed already failing 12 cases
* added new test cases for the modified code
* added new test cases and passed already failing test cases
* removed unwanted files
* Checking local identifier running in always on mode
* local inferred, local mode inferred, sync inferred.
- Adding checks and params for local, local mode, and sync inferred.
* passed all failing tests and added new specs
* Adding local start and stop error
* Updated validation messages for local cli
* Send the value of local_mode not the true/false
* Bug fixes for callback stop and start binary
* Removing bshost.
* Adding local_config_file for passing configuration for local binary
* Updating inferred event logic
- If the user passed anything explicitly, then it is not inferred.
- This is to understand which of the "auto-fallback" flows does CLI fall in.
- Inverted the logic of the *_inferred events.
* updating user agent to 1.7.2
* written extra specs and passed failing spec
* removed unwanted log files
* covered new functions under test
* Modified local unit tests
* Fixing Unit test cases
* removed local object creation
* Indentation and minor null pointer fixes.
* Adding placeholders for local_mode and local_config_file in default json
* Local Start fail error.
* Fix Local Inferred logic
* Fixed local_mode not set to always-on when local_identifier is supplied in browserstack.json
* Send local_identifier_error when local_identifier not running in stopBinary
* Local mode and id validation
* Added test cases for local testing bug fixes
* Warning message in case of local_mode is invalid
* Updated message for invalid local config file
* Fixed cli args precendence on-demand bug
* Updating version to 1.8.0
Co-authored-by: Surya Tripathi <[email protected]>
Co-authored-by: roshan <[email protected]>
Copy file name to clipboardExpand all lines: bin/helpers/constants.js
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,10 @@ const userMessages = {
37
37
FATAL_NETWORK_ERROR: `fatal: unable to access '${config.buildUrl}': Could not resolve host: ${config.rails_host}`,
38
38
RETRY_LIMIT_EXCEEDED: `Max retries exceeded trying to connect to the host (retries: ${config.retries})`,
39
39
CHECK_DASHBOARD_AT: "Please check the build status at: ",
40
-
CYPRESS_VERSION_CHANGED: "Your build will run using Cypress <actualVersion> instead of Cypress <preferredVersion>. Read more about supported versions here: http://browserstack.com/docs/automate/cypress/supported-versions"
40
+
CYPRESS_VERSION_CHANGED: "Your build will run using Cypress <actualVersion> instead of Cypress <preferredVersion>. Read more about supported versions here: http://browserstack.com/docs/automate/cypress/supported-versions",
INVALID_LOCAL_MODE_WARNING: "Invalid value specified for local_mode. local_mode: (\"always-on\" | \"on-demand\"). For more info, check out https://www.browserstack.com/docs/automate/cypress/cli-reference"
41
44
};
42
45
43
46
constvalidationMessages={
@@ -57,7 +60,11 @@ const validationMessages = {
57
60
INVALID_CYPRESS_JSON: "cypress.json is not a valid json",
58
61
INVALID_DEFAULT_AUTH_PARAMS: "Your username and access key are required to run your tests on BrowserStack. Learn more at https://www.browserstack.com/docs/automate/cypress/authentication",
59
62
LOCAL_NOT_SET: "To test <baseUrlValue> on BrowserStack, you will have to set up Local testing. Read more here: https://www.browserstack.com/docs/automate/cypress/local-testing",
60
-
INCORRECT_DIRECTORY_STRUCTURE: "No tests to run. Note that your Cypress tests should be in the same directory where the cypress.json exists."
63
+
INCORRECT_DIRECTORY_STRUCTURE: "No tests to run. Note that your Cypress tests should be in the same directory where the cypress.json exists.",
64
+
INVALID_CLI_LOCAL_IDENTIFIER: "When using --local-identifier, a value needs to be supplied. \n--local-identifier <String>.\nFor more info, check out https://www.browserstack.com/docs/automate/cypress/cli-reference",
65
+
INVALID_LOCAL_MODE: "When using --local-mode, a value needs to be supplied. \n--local-mode (\"always-on\" | \"on-demand\").\nFor more info, check out https://www.browserstack.com/docs/automate/cypress/cli-reference",
66
+
INVALID_LOCAL_CONFIG_FILE: "Using --local-config-file requires an input of the form /path/to/config-file.yml.\nFor more info, check out https://www.browserstack.com/docs/automate/cypress/cli-reference",
67
+
INVALID_LOCAL_IDENTIFIER: "Invalid value specified for local_identifier. For more info, check out https://www.browserstack.com/docs/automate/cypress/cli-reference"
61
68
};
62
69
63
70
constcliMessages={
@@ -94,6 +101,10 @@ const cliMessages = {
94
101
SYNC_DESCRIPTION: "Makes the run command in sync",
95
102
BUILD_REPORT_MESSAGE: "See the entire build report here",
96
103
HEADED: "Run your tests in a headed browser instead of a headless browser",
104
+
LOCAL: "Accepted values: (true | false) - create a local testing connection to let you test staging and localhost websites, or sites behind proxies; learn more at browserstack.com/local-testing",
105
+
LOCAL_MODE: 'Accepted values: ("always-on" | "on-demand") - if you choose to keep the binary "always-on", it will speed up your tests by keeping the Local connection warmed up in the background; otherwise, you can choose to have it spawn and killed for every build',
106
+
LOCAL_IDENTIFIER: "Accepted values: String - assign an identifier to your Local process instance",
107
+
LOCAL_CONFIG_FILE: "Accepted values: String - path to local config-file to your Local process instance. Learn more at https://www.browserstack.com/local-testing/binary-params"
0 commit comments