๐ข๐ Room Booking System ๐งโ๐ป
This project is aimed at designing, building, and testing a room booking system. The main objective of the system is to avoid overlapping bookings and to let the booking manager know if a room is being booked, for how long, by whom, and when.
๐งช Test Driven Development (TDD)
๐ Write good tests with a strategic rationale.
๐จโ๐ป Focus on testing during development.
๐ค Project Interview with Group: Present and defend what you've built and tested.
/Backend
directory run:
./start.sh
./start.bat
in /Frontend
directory run:
cd frontend
npm install
npm run dev
Our framework of choice is pytest. however, we need to test our code that uses Firestore and Firebase auth. we were able to test these without needing to make API calls to the normal Firebase service by using Firebase emulator which creates a local instance of Firebase for testing purposes. in a way, it's just a very fancy mock library.
in /
root directory run:
npm install -g firebase-tools
firebase emulators:start --only auth,firestore --import=test-emulator-default
/Backend
directory, run:pip install poetry
poetry install
The SvelteKit app uses playwright to do end-to-end testing.
/Frontend
directory run:
npx playwright install
/Backend
directory run:
poetry run pytest
poetry run pytest --cov=app ./tests/
in /Frontend
directory run:
npm run test
npm run test:unit