Running Tests
You can run tests via Tesmon Desktop or Tesmon Cloud.
Tesmon Desktop
Tesmon Cloud
Run tests using the Tesmon CLI with the following command:
tesmon test --model default
Example
tesmon test --model default --environmentId 3134cb07-ec67-43b0-a71f-d6e92da80630 --testIds=testId1,testId2
Parameters
Parameter | Description | Type | Required |
---|---|---|---|
--model | Specifies the model the testbot should use. | string | true |
--path | If the Tesmon tests are in the same code repository, this parameter specifies the path to the tests. | string | Optionally True |
--environmentId | Specifies the environment identifier for the Tesmon service, crucial for setting up test configurations. | string | true |
--apiToken | Provides the API token necessary for authentication with Tesmon services during test execution. | string | true |
Environment Variables
TESMON_ENVIRONMENT_ID
: Unique identifier for the Tesmon environment to ensure tests run in the correct context.TESMON_API_TOKEN
: Secure API token stored in GitHub secrets to authenticate against Tesmon Platform.
Example:
tesmon test --environmentId $TESMON_ENVIRONMENT --apiToken $TESMON_API_TOKEN --model default --envConfigId staging -p ./tesmon-tests
📄️ GitHub Actions
Example
📄️ GitLab Actions
Example
📄️ Jenkins
Example
📄️ Circle CI
Example