Browse Source

Housekeeping

maziggy 3 weeks ago
parent
commit
9a69e2ea97
2 changed files with 18 additions and 0 deletions
  1. 11 0
      test_backend.sh
  2. 7 0
      test_frontend.sh

+ 11 - 0
test_backend.sh

@@ -0,0 +1,11 @@
+#!/bin/sh
+
+cd backend
+ruff check && ruff format --check
+
+#if [ "$1" = "--full" ]; then
+../venv/bin/python3 -m pytest tests/ -v -n 30
+#else
+#../venv/bin/python3 -m pytest tests/ -v -n 30 --ignore=tests/unit/services/test_bambu_ftp.py
+#fi
+#cd ..

+ 7 - 0
test_frontend.sh

@@ -0,0 +1,7 @@
+#!/bin/sh
+
+cd frontend
+npx tsc
+npm run lint
+npm run test:run
+cd ..