Loading...
Loading...
Запуск тестов проекта: unit, integration. Определение типа проекта и выбор стратегии.
npx skill4agent add alexeykrol/claude-code-starter testing# Node.js проект
if [ -f "package.json" ]; then
echo "node"
cat package.json | grep -A5 '"scripts"' | grep test
fi
# Python проект
if [ -f "pyproject.toml" ] || [ -f "pytest.ini" ] || [ -f "setup.py" ]; then
echo "python"
finpm testpython3 -m pytest tests/ -v/finishimplementer# Node.js
npx jest --coverage 2>/dev/null || true
# Python
python3 -m pytest --cov=src tests/ 2>/dev/null || true