wildan3105 / google-scraper

Google scraper
https://google-scraper-web-7922a635d04a.herokuapp.com/
0 stars 1 forks source link

[Chore] Increase test coverage #38

Open malparty opened 5 months ago

malparty commented 5 months ago

Issue

Automated tests do not cover the core business logic (CSV upload, scraping).

Expected

While 100% test coverage is not required for this code challenge, all critical paths of the application should be unit-tested (and, ideally, UI-tested). So the following should be covered:

[!Note] There is a bit of a challenge to implement tests for a service that generates HTTP requests. Hence, it is an expected part of the submission for us to assess your skills in writing challenging tests.

wildan3105 commented 5 months ago

Thanks for this comment. For the following flows:

Do you expect me to cover integration test (backend to call frontend)? Or frontend and backend could be done separately?

malparty commented 5 months ago

💡 As a lot of effort was already provided on the project, you do not need to handle any of the issues I just posted in the code. Your "text" responses are good for us to complete the assessment :)

But if that were a real project, our testing strategy would be like:

wildan3105 commented 5 months ago

Understood. Thank you for your thorough insight and understanding. I acknowledge that the testing strategy I employed may not have aligned with best practices, which may have impacted the confidence level during development. Your feedback has shed light on areas for improvement, and I genuinely appreciate the opportunity to learn and grow from this experience. Moving forward, I'll strive to implement more comprehensive testing strategies (iteratively during development) to ensure the robustness of future projects.