Integration tests


Content


0. Set Up

Make sure that you have followed the steps 0-4 in Development.

1. Set Environment Variables

Go to the folder: Code/BackendAPI/.

Environment variables for unit tests must be defined in: tests/integration/integration_tests.env.

See section configuration in Development.

Add the additional required values:

VariableDescriptionExample
TEST_URL_SCHEMAURL schemehttps
TEST_URL_HOSTURL host nameapim-similarity-detector.azure-api.net
TEST_BASE_URLBase URL/v1

2. Execute unit tests

# Windows
.\make.ps1 -IntegrationTests
# Console
python -m pytest --envfile ./tests/integration/integration_tests.env tests/integration