summaryrefslogtreecommitdiff
path: root/run_tests.sh
diff options
context:
space:
mode:
authorRoberto Bertó <463349+robertoberto@users.noreply.github.com>2025-11-02 19:55:55 -0300
committerGitHub <noreply@github.com>2025-11-02 19:55:55 -0300
commit6ca1269b138696b69c33d2db4bcf7dd03ea4caeb (patch)
tree4c0a634730df2123ff506252cbec050de006dac8 /run_tests.sh
parent1ada32975f0bb559ec7526e0dd545700dde1cb94 (diff)
parent6b4e9015744ab8c9f17a6b8e23387cd676b1d827 (diff)
downloadpyvyos-6ca1269b138696b69c33d2db4bcf7dd03ea4caeb.tar.gz
pyvyos-6ca1269b138696b69c33d2db4bcf7dd03ea4caeb.zip
Merge pull request #27 from vyos-contrib/feat/architecture-and-quality-improvements
feat: v0.4.0 - Architecture refactor, bug fixes, and quality improvem…
Diffstat (limited to 'run_tests.sh')
-rw-r--r--run_tests.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/run_tests.sh b/run_tests.sh
new file mode 100644
index 0000000..c07a684
--- /dev/null
+++ b/run_tests.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+set -e
+
+echo "=== PyVyOS Test Suite ==="
+echo ""
+
+echo "1. Sincronizando dependências..."
+uv sync
+
+echo ""
+echo "2. Verificação rápida de imports..."
+uv run python test_quick.py
+
+echo ""
+echo "3. Executando testes de shims..."
+uv run pytest tests/test_shims.py -v
+
+echo ""
+echo "4. Executando testes de utils..."
+uv run pytest tests/utils/ -v
+
+echo ""
+echo "5. Executando testes de exceptions..."
+uv run pytest tests/test_exceptions.py -v
+
+echo ""
+echo "6. Executando teste de compatibilidade..."
+uv run pytest tests/modules/test_vy_device.py::test_shim_compatibility -v
+
+echo ""
+echo "7. Executando TODOS os testes..."
+uv run pytest tests/ -v --tb=short
+
+echo ""
+echo "✅ Todos os testes concluídos!"
+