No description
Find a file
Jannes van den Bogert 5fa27b0209 Update readme document
2024-06-27 02:04:33 +02:00
.devcontainer update project files (#5457) 2024-04-07 10:24:40 -07:00
.github Bump actions/checkout from 4.1.4 to 4.1.6 in the github-actions group 2024-06-01 15:55:45 +00:00
docs Provide a configuration option to control automatic option responses 2024-06-07 19:04:18 +00:00
examples Update pyproject.toml 2024-05-02 17:57:34 +10:00
images Adding the documentation and screenshots 2024-06-26 23:12:11 +02:00
requirements Bump the python-requirements group in /requirements with 3 updates 2024-06-01 15:12:17 +00:00
requirements-skip use pip-compile instead of pip-compile-multi 2023-11-09 08:56:36 -08:00
src/flask Adding the test cases 2024-06-25 12:18:11 +02:00
tests Fix the hardcoded path 2024-06-26 14:44:52 +02:00
.editorconfig update project files (#5457) 2024-04-07 10:24:40 -07:00
.gitignore update project files (#5457) 2024-04-07 10:24:40 -07:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate 2024-06-03 22:10:27 +00:00
.readthedocs.yaml update project files (#5457) 2024-04-07 10:24:40 -07:00
CHANGES.rst Provide a configuration option to control automatic option responses 2024-06-07 19:04:18 +00:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2019-05-06 12:41:01 -04:00
CONTRIBUTING.rst switch docs to flit 2023-06-27 14:13:56 -07:00
coverage_result.json Adding the test cases 2024-06-25 12:18:11 +02:00
LICENSE.txt update project files (#5457) 2024-04-07 10:24:40 -07:00
pyproject.toml start version 3.1.0 2024-04-07 12:29:49 -07:00
README.md Update readme document 2024-06-27 02:04:33 +02:00
tox.ini test with python 3.13 2024-05-11 08:37:47 -07:00

Report for Assignment 1

Project chosen

Name: Flask

URL: https://github.com/pallets/flask

Number of lines of code and the tool used to count it: 782430 counted using Lizard

Programming language: Python

Coverage measurement

Existing tool

The existing tool used for measuring coverage is coverage.py. It was executed using the following command:

coverage run -m pytest

Coverage results with the Coverage.py tool

Your own coverage tool

Group member name: Jannes van den Bogert

Function 1 name: 'get_send_file_max_age'

Commit made: get_send_file_max_age

JSON Dumb file for the results The coverage before writing a test

Function 2 name: dispatch_request

Commit made: Commit for dispatch_request

JSON Dumb file for the results The coverage before writing a test

Coverage improvement

Individual tests

Group member name: Jannes van den Bogert

Test 1 name: test_get_send_file_max_age

Commit made: Commit for test_make_config.py

The coverage before writing a test

The coverage after writing a test

The coverage improved by 54%, from 46% to 100%.

Test 2 name: test_dispatch_request

Commit made: Commit for test_make_config.py

The coverage before writing a test

The coverage after writing a test

The coverage improved by 58%, from 42% to 100%.

Overall

The overall coverage before writing any tests

The overall coverage before writing any tests

Statement of individual contributions

Jannes van den Bogert: I was responsible for designing and implementing two tests for the Flask application. The tests targeted two specific functions: get_send_file_max_age and dispatch_request. My contributions were helping in enhancing the test coverage from partial to complete for these functions, achieving a significant increase in overall coverage.