Skip to content

Repository files navigation

drawing Personal Portfolio web

Version GitHub language count GitHub Top languaje Test coverage GitHub License

Richi web Twitter

Flask web for personal portfolio


Endpoint

https://richionline-portfolio.nw.r.appspot.com

Deploy in Google Cloud Platform
gcloud app deploy
Setup
pip install -r requirements.txt
Running the app
flask run (with .flaskenv)

or

flask run -app PATH_APP
Setup tests
pip install -r requirements-tests.txt
Running the tests

Run all tests with pytest:

pytest

Run tests with verbose output:

pytest -v

Run tests with coverage report:

pytest --cov=. --cov-report=html --cov-report=term-missing

Run specific test file:

pytest tests/test_main.py

Run specific test class or function:

pytest tests/test_main.py::TestHomeRoute::test_home_status_code
Running the tests with pytest and coverage
./scripts/check_project.sh

or

coverage run -m pytest -v && coverage html --omit=*/venv/*,*/tests/*
Test Coverage

The test suite includes:

  • Route Tests: Tests for all Flask routes (home, contact, portfolio)
  • Configuration Tests: Tests for config.py constants and SETUP_DATA
  • Template Tests: Verification that correct templates are rendered
  • Error Handling Tests: Tests for 404 and invalid HTTP methods
  • Static Files Tests: Basic tests for static file serving

View the detailed coverage report by opening htmlcov/index.html after running tests with coverage.

Versions

1.0.1 Some new styles and config 1.0.0 First version

Releases

Packages

Contributors

Languages