Updated New Script
This Script is faster, more powerful, and easier to implement.
Appsurify Script Installation
Index
Installation Instructions
Requirements
Support OS / Python
Installation Command
Repository Push / Git2TestBrain (git2appsurify)
Possible params
Usage Examples
Repository Checkout
Possible Params
Usage Examples
Installation Instructions
Requirements
Python 3.7+
Support OS / Python
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
or
Note: Use -U or --upgrade for force upgrade to last version
Docker image "appsurify-testbrain-cli"
Latest Version
Specify version
Repository Push | 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"
Alias #1
Alias #2
Alias #3
Parameters
Yes
--server
TESTBRAIN_SERVER
Enter your Testbrain server instance url.
Yes
--token
TESTBRAIN_TOKEN
Enter your testbrain server instance token or API Key. Located in top-right hand corner of user-interface under user profile.
Yes
--project
TESTBRAIN_PROJECT
Enter your Testbrain projet 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
--start / --commit
latest (HEAD)
TESTBRAIN_START_COMMIT
Enter the commit that should be starter. If not specified, it will be used 'latest' commit.
No
--number
1
TESTBRAIN_NUMBER_OF_COMMITS
Enter the number of commits to process.
No (unavailable)
--blame
false
Add blame information.
No
--minimize
false
Suppress commit changes information. [default; (False)]
No
--pr-mode
false
TESTBRAIN_PR_MODE
Activate PR mode
No
-l, --loglevel
INFO
Possible fatalities: DEBUG/INFO/WARNING/ERROR
No
--logfile
stderr
Saves logs to file
No
--quiet
fales
Quiet mode...every time exit with 0
Usage Examples
Push to Testbrain server only one last commit from current branch:
Or
Push to Testbrain server last 100 commits started from specify commit into specify branch:
If need more process information - change logging level:
Add log file with full or relative path:
If any crash errors script will create crash dump file into {WORK_DIR}/.crashdumps/
You can see this message:
Docker version usage
$(pwd) - git repository path
CI example (github actions)
.github/workflows/testbrain-git2testbrain.yml
Repository Checkout
This module is used to checkout branches during the execution of CI pipelines or manually. Cloning is not provided.
Alias #1
Alias #2
Alias #3
Parameters
No
--repo-dir
current dir
TESTBRAIN_REPO_DIR
Enter the git repository directory. If not specified, the current working directly will be used.
No
--branch
current
TESTBRAIN_BRANCH
Enter the explicit branch to process commits. If not specified, use current active branch.
No
--commit
latest (HEAD)
TESTBRAIN_START_COMMIT
Enter the commit that should be starter. If not specified, it will be used 'latest' commit.
No
--pr-mode
False
TESTBRAIN_PR_MODE
Activate PR mode
No
--work-dir
current dir
TEST_WORK_DIR
Enter the testbrain script working directory, the current working directory will be used.
No
-l, --loglevel
INFO
Possible Fatalities: DEBUG/INFO/WARNING/ERROR
No
--logfile
stderr
Save logs to file
No
--quiet
false
Quiet mode...every time exit with 0
Usage Examples:
Checkout using Testbrain CLI
Or
Or
Docker version usage
$(pwd) - git repository path
Last updated