Skip to main content

Running Tests

You can run tests via Tesmon Desktop or Tesmon Cloud.

Tesmon Desktop

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

ParameterDescriptionTypeRequired
--modelSpecifies the model the testbot should use.stringtrue
--pathIf the Tesmon tests are in the same code repository, this parameter specifies the path to the tests.stringOptionally True
--environmentIdSpecifies the environment identifier for the Tesmon service, crucial for setting up test configurations.stringtrue
--apiTokenProvides the API token necessary for authentication with Tesmon services during test execution.stringtrue

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