doc: add test generation instructions and update run.sh
Added documentation for test generation through Ollama, including new command-line arguments for `generate_tests.py` and updated `run.sh` script. Also added a new `gen` command to `run.sh` for generating tests via Ollama. This improves usability by providing clear instructions and automation for test generation.
This commit is contained in:
6
run.sh
6
run.sh
@@ -39,6 +39,11 @@ if [ -n "$1" ]; then
|
||||
python src/main.py "$@"
|
||||
elif [[ "$1" == "clean" ]]; then
|
||||
clean
|
||||
elif [[ "$1" == "gen" ]]; then
|
||||
activate
|
||||
echo "🤖 Генерирую тесты через Ollama..."
|
||||
python scripts/generate_tests.py --count 1 --category all --model second_constantine/t-lite-it-1.0:7b --ollama-url http://10.0.0.4:11434
|
||||
echo "✅ Тесты успешно сгенерированы"
|
||||
fi
|
||||
else
|
||||
echo " Аргументом необходимо написать название скрипта (+опционально аргументы скрипта)"
|
||||
@@ -47,4 +52,5 @@ else
|
||||
echo " * upd - обновление зависимостей"
|
||||
echo " * run - запуск бенчмарков"
|
||||
echo " * clean - очистка отчетов"
|
||||
echo " * gen - генерация тестов через Ollama"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user