Skip to content

ns-saini/APP_Project

Repository files navigation

Prerequisites

  • Python3
  • Pip3
  • Source code

Setup

Virtual Environment

Setup the virtual environment

# install virtualenv using pip3
pip3 install virtualenv

# venv folder will be created in the root directory
python3 -m venv venv

# activate the virtual env - for Unix/Linux
source ./venv/bin/activate

# (or)

# activate the virtual env - for Windows
.\venv\Scripts\activate.bat // cmd
.\venv\Scripts\activate.ps1 // Powershell

Install Dependencies

pip3 install -r requirements.txt

Execution

python3 main.py

Output

Results from both incarnations will be displayed on every run. Output will be displayed in

  • Through console (textual output)
  • An output.xml file

Testing

Execute the following command to run all unit test cases under the /tests folder.

python3 -m coverage run -m unittest

Coverage Report

The following command gives an overview of the code coverage. To be run after running above command.

python3 -m coverage report

Pylint

Pylint enforces the best coding practices and ensures that the PEP 8 guidelines are followed. Run the command below to check for the code quality.

pylint *.py

Pydoc

To generate html file for each python file run the following command in command prompt.

python -m pydoc -w <file address>

To Start a HTTP server on an arbitrary unused port and open a web browser to interactively browse documentation.

python -m pydoc -b

Generate the LaTeX report


License

MIT