Python Imaging Library (Fork)
Go to file
2024-06-27 16:27:37 +02:00
_custom_build merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
.ci merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
.github merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
depends merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
docs merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
myenv tool + improvement done 2024-06-22 16:11:31 +02:00
pillowenv tool + improvement done 2024-06-22 16:11:31 +02:00
report_images more report drafting 2024-06-27 01:55:30 +02:00
src branches fix 2024-06-22 17:39:51 +02:00
Tests test_imagefile.py improvements 2024-06-27 16:27:37 +02:00
wheels merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
winbuild merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
.appveyor.yml merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
.clang-format merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
.coveragerc tool + improvement done 2024-06-22 16:11:31 +02:00
.editorconfig merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
.git-blame-ignore-revs merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
.gitattributes merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
.gitignore merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
.gitmodules merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
.pre-commit-config.yaml merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
.readthedocs.yml merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
CHANGES.rst merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
codecov.yml merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
conftest.py imagecms.py test drafting 2024-06-22 17:32:53 +02:00
libwebp-1.4.0.tar.gz tool + improvement done 2024-06-22 16:11:31 +02:00
LICENSE merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
Makefile merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
MANIFEST.in merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
merged_image.png merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
pyproject.toml merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
README_original.md added the new readme, my report, and the screenshots 2024-06-22 15:54:52 +02:00
README.md original test_imagefile.py 2024-06-27 16:26:10 +02:00
RELEASING.md merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
selftest.py merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
setup.py merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00
tox.ini merge() function tool and coverage improvement 2024-06-19 14:18:43 +02:00

Report for Assignment 1

Project chosen

Name: Pillow

URL of our repository: https://github.com/jovanovicisidora/Pillow-SEP.git

URL of the original repo: https://github.com/python-pillow/Pillow.git

Number of lines of code and the tool used to count it:

  • Tool used: coverage.py
  • Number of lines of code: 82 KLOC

Programming language: Python

Coverage measurement

Existing tool

We used Coverage.py. We executed the coverage tool by running the following command:

python3 -bb -m pytest -v -x -W always --cov PIL --cov Tests --cov-report term Tests $REVERSE

This resulted in the following output:

Coverage Tool Result

Your own coverage tool

<Function 1 name>

<Show a patch (diff) or a link to a commit made in your forked repository that shows the instrumented code to gather coverage measurements>

<Function 2 name>

<Provide the same kind of information provided for Function 1>

Each member of out group has chosen two functions and has instrumented our own coverage tool. For each function we created a dictionary with the branch ID as key, and a boolean as the value. If the branch was accessed by the tests, the boolean value would be changed from False to True. In order to calculate and display the coverage, all tests use the shared code in conftest.py.

1. Deekshu

2. Duru

3. Isidora

4. Sofija

Coverage improvement

Individual tests

<Test 1>

<Show a patch (diff) or a link to a commit made in your forked repository that shows the new/enhanced test>

<Provide a screenshot of the old coverage results (the same as you already showed above)>

<Test 2>

<Provide the same kind of information provided for Test 1>

1. Deekshu

2. Duru

3. Isidora

4. Sofija

Overall

First we provide a screenshot of the old coverage results by running an existing tool:

Coverage Results Before

Here we show the improved overall coverage with all test modifications made by out group:

Coverage Results After

Statement of individual contributions

Each group member had an equal contribution to the assignment. We first met together to determine how we can make a coverage tool that can be used across all functions (in conftest.py). Then, each member chose two functions to instrument our coverage tool on and to make/enhance tests for their branch improvement. The specific functions each member chose can be seen in the report above.