espin086 / GPT-Jobhunter

AI-powered job analysis and resume coaching tool using GPT. Analyzes job postings and provides personalized recommendations to job seekers for improving their resumes.
MIT License
55 stars 15 forks source link

Harden Code: Unit Tests and Functional Tests #100

Closed espin086 closed 8 months ago

espin086 commented 8 months ago

The code needs to be hardened further here are some critical tests that need to be added to the test suite:

  1. What happens if the database is deleted? And the code is rerun- will it error out gracefully?

  2. What happens if there is no resume saved locally? Will the testing suite produce an error? Are there asset statements when reading in resume data to ensure all resume.txt data is there?

  3. If the job search is run and there have not been any new jobs for a given title in 3 months, does the front-end streamlit application warn the user that recent jobs weren't uploaded?

The answer to the questions above is NO, so these tests as well as other key tests need to be added to the code base

espin086 commented 8 months ago

Created a branch 100-harden-code-unit-tests-and-functional-tests

espin086 commented 8 months ago

Added a test to check for the presence for a resume.txt

espin086 commented 8 months ago

Deleted database and reran all tests tested ui and system recovered.