Skip to content

Latest commit

 

History

History
97 lines (69 loc) · 2.22 KB

developers.md

File metadata and controls

97 lines (69 loc) · 2.22 KB

Project Management Statistics for Developers

Index

Development in situ

Prepare the venv

python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements_test.txt

Testing with redmine

If you have already a trackers/redmine/config.py skip this step

cp ./trackers/redmine/config_example.py ./trackes/redmine/redmine.py

Run the tests with

make test

Development in a container

Build the containers

There are four alternatives:

  • podman-container: Create the main container using podman
  • podman-container-test: Create the container for testing using podman
  • docker-container: Create the main container with docker
  • docker-container-test: Create the container for testing using docker

e.g.

make docker-container

The containers created are:

  • pms: For the main container
  • pms_test: For the testing container

Execute

With podman or docker

podman run --rm pms <command>

Testing

With podman or docker

podman run --rm pms_test make test

Development in a container

With podman or docker

podman run -ti --rm -v <your_code_path>:/pms pms_test bash

Code organization

The code is organized in the following way (in alphabetical order):

  • db: Database related code. Includes the models, the query class and the filter builder
  • docs: Documentation
  • formatters: Formatters for the metrics results
  • metrics: Metrics related code. Includes the metrics classes and the metrics results. Additionally the column tranformations class
  • tests: Tests for the code
  • trackers: Trackers related code. Includes redmine and bugzilla
  • utils: Utilities for the code

Specific documentation