Skip to content

santeri0200/FlashForge

Repository files navigation

FlashForge

OHTU miniprojekti codecov

BACKLOG SPRINT BACKLOG

END REPORT

Running the project

Run the project with sh scripts/setup.sh. The script uses database ohtu which is the same as the default used without .env-file.

or

  1. Run your Postgresql service.
  2. Create a database with createdb. The default used by the project is ohtu.

You can combine these to createdb ohtu.

  1. Add the database schema by running psql -d ohtu < sql/schema.sql.
  2. Install poetry dependencies with poetry install.
  3. Open poetry shell and run the flask application with flask --app src/app run --debug.

Running tests

Unittest

Run unittest with command: poetry run pytest

Pylint

Run pylint with command: poetry run pylint src

Robot tests

Run Robot tests with command: sh scripts/ci_robot_tests.sh

Definition of Done

  • All subtasks marked on the task are done.
  • CI is successful on the pull request.
  • Pull request is approved by atleast one peer.
  • Pull request merges to master without conflicts.