Skip to content

Commit

Permalink
feat(scripts): add artillery test script for performance testing
Browse files Browse the repository at this point in the history
Introduce a new script `artillery.sh` to check for the presence of
Artillery and execute performance tests using a predefined configuration.
The script provides helpful messages for installation and test results.
  • Loading branch information
s00d committed Jan 16, 2025
1 parent c7fbcc8 commit ca5fcdf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions artillery.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# Проверка наличия Artillery
if ! command -v artillery &> /dev/null; then
echo "Artillery не установлен. Установите его с помощью npm install -g artillery."
exit 1
fi


# Запуск Artillery
echo "Запуск Artillery теста на $1..."
artillery run "artillery-config.yml" --record --key a9_jGi0MTv-pQ5rBTZgmFNlJ4CoonVxYQQa

# Обработка результатов
echo "Результаты теста:"
artillery report artillery-output.json

0 comments on commit ca5fcdf

Please sign in to comment.