Files
AutoMetabuilder/backend/autometabuilder/tools/run_tests.py
johndoe6345789 877ba64de8 Introduce AutoMetabuilder core components and workflow packages:
- Implement core components: CLI argument parsing, environment loading, GitHub service creation, and logging configuration.
- Add support for OpenAI client setup and model resolution.
- Develop SDLC context loader from GitHub and repository files.
- Implement workflow context and engine builders.
- Introduce major workflow packages: `game_tick_loop` and `contextual_iterative_loop`.
- Update localization files with new package descriptions and labels.
- Streamline web navigation by loading items from a dedicated JSON file.
2026-01-10 00:45:46 +00:00

16 lines
438 B
Python

"""Run pytest on a path."""
import logging
import subprocess
logger = logging.getLogger("autometabuilder")
def run_tests(path: str = "tests") -> str:
"""Run pytest on a path."""
logger.info("Running tests in %s...", path)
result = subprocess.run(["pytest", path], capture_output=True, text=True, check=False)
logger.info(result.stdout)
if result.stderr:
logger.error(result.stderr)
return result.stdout