iamDyeus / tkreload

auto reloads your tkinter app whenever file changes are detected 🐍
https://pypi.org/project/tkreload/
Apache License 2.0
7 stars 6 forks source link

Added Test Cases | Issue #3 #8

Closed SpreadSheets600 closed 2 days ago

SpreadSheets600 commented 2 days ago

The changes I made are as follows:

  1. Testing Framework: Integrated pytest as the testing framework to ensure robust and maintainable testing for the project.
  2. Initial Test Cases: Added unit tests for core modules, including:
    • auto_reload.py: Testing the AutoReloadManager class.
    • file_utils.py: Testing utility functions such as file_exists() and clear_terminal().
    • app_event_handler.py: Testing file event handling and callback triggers.
    • main.py: Testing the main logic for running and monitoring the Tkinter app.
  3. Test Documentation: Updated the README to include instructions on running tests using pytest or unittest.

Issue To Be Closed : #3 I tried my best, hope it is good enough :)

iamDyeus commented 2 days ago

Great Work @SpreadSheets600 🎊

SpreadSheets600 commented 2 days ago

@iamDyeus labels 🥹 hacktoberfest