Seminaarityössä keskityin Reddit Analyzer -sovelluksen Flask-backendin testaukseen, erityisesti tietokantayhteyksiin ja REST API:in. Toteutin yhteensä 49 testiä 14 testitapauksen pohjalta käyttäen pytestiä ja Mongomockia. Testien ajo automatisoitiin GitHub Actionsilla ja tulokset visualisoitiin Allure Reportilla. Työ tarjosi arvokasta käytännön kokemusta testauksen suunnittelusta, toteutuksesta ja tulosten analysoinnista, ja vahvisti ymmärrystäni testauksen merkityksestä ohjelmistokehityksessä.
Raportti:
➡️ https://github.com/kkivilahti/ohke-flask-testing/blob/main/raportti.md
Testien lähdekoodit:
➡️ https://github.com/ohjelmistoprojekti-ii-reddit-app/reddit-app-backend/tree/testing/tests
Interaktiivinen testiraportti (Allure Report):
➡️ https://ohjelmistoprojekti-ii-reddit-app.github.io/reddit-app-backend
Videoesittely:
➡️ https://www.youtube.com/watch?v=0HHo7ugsh8E
This project focuses on testing the Flask backend of the Reddit Analyzer application, with emphasis on database interactions and REST API endpoints. A total of 49 tests were implemented across 14 test cases, using pytest and Mongomock. Test execution was automated with GitHub Actions, and the results were visualized using Allure Report. The project provided valuable hands-on experience in planning, implementing and analyzing tests, while enhancing my understanding of the importance of testing in software development.