backend: implement basic functionality in app class. testing: organize and improve javascript test swuite

This commit is contained in:
Shivering Ocelot committed 2025-05-09 09:18:42 -05:00
1 parent 44f0b3589c
commit cbd8452ee5
5 files changed
+294 -482

No files matched your search

+26 -5
View File
@@ -14,22 +14,43 @@ case "$1" in
# Start backend in the background
cd backend
source ../.venv/bin/activate
python app.py ../test-data &
python app.py ../test-data &
BACKEND_PID=$!
echo "Started backend: $BACKEND_PID"
sleep 2
# Run tests
cd ../testing
#bash signup.sh
bash signup.sh
#node login.js
node create-agent.js
node suite.js
# Finalize the backend server
kill $BACKEND_PID
;;
"debug")
# Debug doesn't work very well... I don't use it.
cd backend
source ../.venv/bin/activate
python app.py &
cd ../frontend
# This can be skipped if chrome IS installed
export CHROME_EXECUTABLE=chromium
export BACKEND_URL="ws://localhost:5000"
flutter run -d chrome
# Close backend when debugger closes
kill $!
;;
"watch")
echo "TODO: Implement watch functionality"
# requires 'inotify-tools' package
cd frontend
while inotifywait -r -e modify,create,delete lib; do
flutter build web
done
;;
*)
echo "Error: unknown command '$1'"
;;
esac
esac