Command Line Interface for Appsurify Testbrain.
Project description
Appsurify Script Installation
Index
Installation Instructions
Requirements
Python 3.7+
Note: Support for Python 3.7 will be completed soon because this version is already considered depricated
Support OS / Python
OS | Python | Support |
---|---|---|
Linux | 3.7 | 🟢 |
Linux | 3.8 | 🟢 |
Linux | 3.11 | 🟢 |
MacOS | 3.7 | 🟢 |
MacOS | 3.8 | 🟢 |
MacOS | 3.11 | 🟢 |
Windows | 3.7 | 🟢 |
Windows | 3.8 | 🟢 |
Windows | 3.11 | 🟢 |
Installation Command
pip install appsurify-testbrain-cli
or
poetry add appsurify-testbrain-cli
Note: Use -U or --upgrade for force upgrade to last version
Docker image "appsurify-testbrain-cli"
Latest version
docker pull appsurifyinc/appsurify-testbrain-cli
Specify version
docker pull appsurifyinc/appsurify-testbrain-cli:2023.10.24
Git2Testbrain (git2appsurify)
This module is used to push changes in the repository to the Testbrain server for further analysis and testing optimization.
This module can be used as an independent command in the OS or as a subcommand of the main CLI application "testbrain"
testbrain repository push --help
git2testbrain push --help
testbrain git2testbrain push --help
Possible params
Required | Parameter | Default | Env | Description | Example |
---|---|---|---|---|---|
yes | --server | TESTBRAIN_SERVER | Enter your testbrain server instance url. | http://127.0.0.1 | |
yes | --token | TESTBRAIN_TOKEN | Enter your testbrain server instance token. | ||
yes | --project | TESTBRAIN_PROJECT | Enter your testbrain project name. | ||
no | --work-dir | current dir | TESTBRAIN_WORK_DIR | Enter the testbrain script working directory. If not specified, the current working directory will be used. | |
no | --repo-name | TESTBRAIN_REPO_NAME | Define repository name. If not specified, it will be automatically taken from the GitRepository repository. | ||
no | --repo-dir | current dir | TESTBRAIN_REPO_DIR | Enter the git repository directory. If not specified, the current working directory will be used. | |
no | --branch | current | TESTBRAIN_BRANCH | Enter the explicit branch to process commits. If not specified, use current active branch. | |
no | --number | 1 | TESTBRAIN_NUMBER_OF_COMMITS | Enter the number of commits to process. | |
no | --start | latest (HEAD) | TESTBRAIN_START_COMMIT | Enter the commit that should be starter. If not specified, it will be used 'latest' commit. | |
no (unavailable) | --blame | false | Add blame information. | ||
no | -l, --loglevel | INFO | Possible failities: DEBUG/INFO/WARNING/ERROR | ||
no | --logfile | stderr | Save logs to file |
Usage examples
Push to Testbrain server only one last commit from current branch
git2testbrain --server https://demo.appsurify.com --token ************************************************************** --project DEMO
or
git2testbrain push --server https://demo.appsurify.com --token ************************************************************** --project DEMO
Push to Testbrain server last 100 commits started from specify commit into specify branch
git2testbrain --server https://demo.appsurify.com --token ************************************************************** --project DEMO --branch main --start latest --number 100
If need more process information - change logging level
git2testbrain --server https://demo.appsurify.com --token ************************************************************** --project DEMO --branch main --start latest --number 100 --loglevel DEBUG
Add log file with full or relative path.
git2testbrain --server https://demo.appsurify.com --token ************************************************************** --project DEMO --branch main --start latest --number 100 --loglevel INFO --logfile ./git2testbrain.log
If any crash errors script will create crash dump file into {WORK_DIR}/.crashdumps/
git2testbrain --server https://demo.appsurify.com --token ************************************************************** --project DEMO
You can see this message
ERROR 2023-10-23 11:27:39,697 testbrain.git2testbrain.controller git2testbrain/controller.py:39 controller Git2TestbrainController.get_project_id: Project didn't exist, check project name and try again!
Dumped crash report to <path_to_work_dir>/.crashdumps/git2testbrain-2023-10-23-11-27-39.dump
Docker version usage
$(pwd) - git repository path
docker run --rm -it \
-v $(pwd)/:/data \
appsurifyinc/appsurify-testbrain-cli git2testbrain --server https://demo.appsurify.com --token ************************************************************** --project DEMO
QA2Testbrain (runtestswithappsurify)
Coming soon. Currently under development. Use the old 'appsurifyci' package
pip install appsurifyci --upgrade
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for appsurify_testbrain_cli-2023.11.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9cce03d801e348ff5707d28f0d95006f641ad38691d53a257cbe366b6034497 |
|
MD5 | ecfafd8a227b9031f0280227f7f2bfb6 |
|
BLAKE2b-256 | 2c8e2b18131858cf95aa7cd9b1c6b2afa63f2b12862940a7aaaa4053c307f9e0 |
Hashes for appsurify_testbrain_cli-2023.11.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02ec8d227aca6672b0d8dbbff915046f8586b45b9776f87dd06ea74a32a079f4 |
|
MD5 | 82320dafb4a9463520f1de8a89db2df8 |
|
BLAKE2b-256 | 6791ec42eecf68dbaf2f3574790c182ea839eb32cca4f2e2b2dc9bb5e9e2bdf5 |