make test
make test-sql # Testy bazy danych
make test-zebra # Testy drukarek
make test-integration # Testy integracyjne
# Test połączenia RPI → SQL
curl http://localhost:8081/api/sql/test/wapromag
# Test połączenia RPI → ZEBRA
curl http://localhost:8081/api/zebra/test/zebra-1
# Test komendy ZPL
curl -X POST http://localhost:8081/api/zebra/command \
-H "Content-Type: application/json" \
-d '{"printerId":"zebra-1","command":"~HI"}'
# Bezpośredni test drukarki
echo "~HI" | nc zebra-printer-1 9100
Raporty generowane w katalogu reports/
:
test_report_YYYYMMDD_HHMMSS.html
- Raport HTMLtest_results_YYYYMMDD_HHMMSS.json
- Wyniki JSONsummary_YYYYMMDD_HHMMSS.json
- Podsumowaniehealth_report.json
- Stan systemu