Commit 20a9e3fc authored by Håvard Farestveit's avatar Håvard Farestveit
Browse files

Update README.md

parent 5c9b04a9
Pipeline #115411 passed with stages
in 2 minutes and 55 seconds
......@@ -5,8 +5,11 @@ SecFit (Secure Fitness) is a hybrid mobile application for fitness logging.
## Excersice 2 - DevOps and Testing
### Task 1
#### Implementation and Testing of new features
#### DevOps
The project is set up with Gitlab's CI/CD. It is structured into two stages, testing, and deploy. The project needs to successfully build and get approved by tested in order to deploy. The application is deployed to two Heroku Servers, one for hosting the frontend and the second for the backend. For more information check out `gitlab-ci.yml`
......@@ -14,7 +17,7 @@ The project is set up with Gitlab's CI/CD. It is structured into two stages, tes
In task 2 we used Django Testcase to create unit test for `./workouts/permissions.py` and for the class UserSerializer in `./users/serializer.py`. Theses are added to CI/CD and has to passed in order to deploy.
The test files can be found at:
- Permissions: `backend/secfit/workouts/tests`
- Permissions: `backend/secfit/workouts/tests.py`
- Serializer: `backend/secfit/users/tests/UserSerializer.py`
### Task 3
......@@ -29,6 +32,14 @@ The tests can be found at:
- Black box tests for FR5:
## Run tests
### Setup for local testing
In order to run cypress tests please run createsuperuser and add sample facilites to local database from `seed.json`.
To do this run:
1. `cd backend/secfit`
2. `python manage.py loaddata seed.json`
3. `python manage.py makemigration`
4. `python manage.py createsuperuser` with usernmae `admin` and password `Password`
### Run Backend tests
- `cd backend/secfit`
- `python manage.py test`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment