This week I had the task of implementing more tests and a CI workflow to my project. I had to use a YAML file to run my tests on pull requests and pushes to the main branch.
My YAML file used for this action run:
The repo I worked on this week was for my partner Liam’s project. His project is located at: https://github.com/mpa-LHutchinson/Auto-README
The Auto-README repo differed from mine as it had testing for 2 different files as well was setup slightly different. It also had almost full coverage for the files being around 78% with only 5 lines not being covered by the tests. I decided to convert his way of including a config file into a function, and then allowing for testing to be done on that function. The tests had 95% coverage when I completed my tasks.
For a full breakdown of my changes, visit my pull request here
Overall, I enjoyed adding a CI action to my repo. This allows me to have testing that runs every time I push to main or commit a pull request and also for contributors of my repo to have the same. When I see a pull request from someone to my project now I can see if the test cases all still work and if the program is working as expected with changes included.
This week I had a lot of projects due and was not able to devote enough time to the optional section.
Source link
lol