A suite of End-to-End (E2E) tests for the Animal-AI environment. This package aims to provide a suite of E2E tests for use in CI/CD pipelines with Python pytest package, ensuring the stability and reliability of the Animal-AI platform.
- Python 3.10+
- pytest for running tests
- VSCode for integrated development (optional but recommended)
-
Clone the repository:
git clone https://github.com/Kinds-of-Intelligence-CFI/animal-ai-e2e.git cd animal-ai-e2e
-
Set up your environment variables:
AAI_EXE_PATH
: Path to the Animal-AI executable.LOCAL_PY_ENV_PATH
: Path to the local copy of the Animal-AI Python package.
To streamline development in VSCode, you can create a .vscode/settings.json
file with the following content:
{
"python.testing.pytestArgs": [
"."
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.envFile": "${workspaceFolder}/.vscode/.env"
}
Create a .vscode/.env
file to specify the required environment variables:
AAI_EXE_PATH="my/executable/path/Animal-AI.exe"
LOCAL_PY_ENV_PATH="my/python/package/animal-ai-python"
Run the tests using pytest:
pytest
You can also run a specific test file, i.e., test_general.py
:
pytest tests/test_general.py
- Write play mode tests (success + failure)
- Integrate with GitHub Actions for CI/CD
- Add a TOML configuration file
- Expand test coverage and scenarios
- Improve documentation with examples and detailed explanations