diff --git a/README.md b/README.md index f57bcee..3b152df 100644 --- a/README.md +++ b/README.md @@ -307,7 +307,7 @@ def test_nested_step_skip_or_exception(): ### Configuration with environment variables -You can use environment variable to control certain features of testomat.io +You can use environment variable to control certain features of testomat.io. Environment variables can be either passed inline, or from .env file. #### Basic configuration | Env variable | What it does | Examples | diff --git a/pyproject.toml b/pyproject.toml index 4600705..7047fd1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,8 @@ dependencies = [ "boto3>=1.35.0", "libcst>=1.4.0", "commitizen>=4.8.3", - "autopep8>=2.3.2" + "autopep8>=2.3.2", + "python-dotenv>=1.1.1" ] authors = [ diff --git a/pytestomatio/testomatio/testRunConfig.py b/pytestomatio/testomatio/testRunConfig.py index 6c4d494..1bab892 100644 --- a/pytestomatio/testomatio/testRunConfig.py +++ b/pytestomatio/testomatio/testRunConfig.py @@ -2,8 +2,11 @@ import datetime as dt import tempfile from pytestomatio.utils.helper import safe_string_list, parse_env_value +from dotenv import load_dotenv from typing import Optional +load_dotenv() + TESTOMATIO_TEST_RUN_LOCK_FILE = ".testomatio_test_run_id_lock" DEFAULT_BATCH_SIZE = 50